chore: import node types (#44172)

* chore: add @types/node to client

* fix: update declaration with node 16 changes
This commit is contained in:
Oliver Eyton-Williams
2021-11-12 16:08:39 +01:00
committed by GitHub
parent 355341908b
commit d489aa307e
3 changed files with 48141 additions and 48131 deletions

96243
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -136,6 +136,7 @@
"@types/jest": "26.0.24", "@types/jest": "26.0.24",
"@types/loadable__component": "5.13.4", "@types/loadable__component": "5.13.4",
"@types/lodash-es": "4.17.5", "@types/lodash-es": "4.17.5",
"@types/node": "^16.11.7",
"@types/prismjs": "1.16.6", "@types/prismjs": "1.16.6",
"@types/psl": "1.1.0", "@types/psl": "1.1.0",
"@types/reach__router": "1.3.9", "@types/reach__router": "1.3.9",

View File

@ -15,19 +15,17 @@ declare module '*.png' {
export default content; export default content;
} }
declare namespace NodeJS { // This has to be declared as var, not let or const, to be added to globalThis
interface Global { // eslint-disable-next-line no-var
MathJax: { declare var MathJax: {
Hub: { Hub: {
Config: (attributes: { Config: (attributes: {
tex2jax: { tex2jax: {
inlineMath: Array<string[]>; inlineMath: Array<string[]>;
processEscapes: boolean; processEscapes: boolean;
processClass: string; processClass: string;
};
}) => void;
Queue: (attributes: unknown[]) => void;
}; };
}; }) => void;
} Queue: (attributes: unknown[]) => void;
} };
};