Closed
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existing open or closed documentation requests that match my proposal.
- I have read the FAQ and my problem is not listed.
Suggested Changes
A typescript-eslint
-blessed solution for the problem of declaring globalThis
properties without ignores:
declare global {
var postgresSqlClient: Sql; // 💥 Unexpected var, use let or const instead. eslint (no-var)
}
declare module globalThis
option:
declare module globalThis {
let postgresSqlClient: Sql;
} // 💥 ES2015 module syntax is preferred over namespaces. eslint (@typescript-eslint/no-namespace)