chore: import node types (#44172)
* chore: add @types/node to client * fix: update declaration with node 16 changes
This commit is contained in:
committed by
GitHub
parent
355341908b
commit
d489aa307e
23
client/package-lock.json
generated
23
client/package-lock.json
generated
@ -112,6 +112,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",
|
||||||
@ -7999,9 +8000,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "14.14.31",
|
"version": "16.11.7",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.31.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz",
|
||||||
"integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g=="
|
"integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw=="
|
||||||
},
|
},
|
||||||
"node_modules/@types/node-fetch": {
|
"node_modules/@types/node-fetch": {
|
||||||
"version": "2.5.12",
|
"version": "2.5.12",
|
||||||
@ -24803,6 +24804,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||||
},
|
},
|
||||||
|
"node_modules/socket.io/node_modules/@types/node": {
|
||||||
|
"version": "14.17.33",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.33.tgz",
|
||||||
|
"integrity": "sha512-noEeJ06zbn3lOh4gqe2v7NMGS33jrulfNqYFDjjEbhpDEHR5VTxgYNQSBqBlJIsBJW3uEYDgD6kvMnrrhGzq8g=="
|
||||||
|
},
|
||||||
"node_modules/socket.io/node_modules/debug": {
|
"node_modules/socket.io/node_modules/debug": {
|
||||||
"version": "4.3.2",
|
"version": "4.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
|
||||||
@ -33352,9 +33358,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "14.14.31",
|
"version": "16.11.7",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.31.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz",
|
||||||
"integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g=="
|
"integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw=="
|
||||||
},
|
},
|
||||||
"@types/node-fetch": {
|
"@types/node-fetch": {
|
||||||
"version": "2.5.12",
|
"version": "2.5.12",
|
||||||
@ -46069,6 +46075,11 @@
|
|||||||
"socket.io-parser": "~4.0.3"
|
"socket.io-parser": "~4.0.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@types/node": {
|
||||||
|
"version": "14.17.33",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.33.tgz",
|
||||||
|
"integrity": "sha512-noEeJ06zbn3lOh4gqe2v7NMGS33jrulfNqYFDjjEbhpDEHR5VTxgYNQSBqBlJIsBJW3uEYDgD6kvMnrrhGzq8g=="
|
||||||
|
},
|
||||||
"debug": {
|
"debug": {
|
||||||
"version": "4.3.2",
|
"version": "4.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
|
||||||
|
@ -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",
|
||||||
|
10
client/src/declarations.d.ts
vendored
10
client/src/declarations.d.ts
vendored
@ -15,9 +15,9 @@ 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: {
|
||||||
@ -28,6 +28,4 @@ declare namespace NodeJS {
|
|||||||
}) => void;
|
}) => void;
|
||||||
Queue: (attributes: unknown[]) => void;
|
Queue: (attributes: unknown[]) => void;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user