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

View File

@ -112,6 +112,7 @@
"@types/jest": "26.0.24",
"@types/loadable__component": "5.13.4",
"@types/lodash-es": "4.17.5",
"@types/node": "^16.11.7",
"@types/prismjs": "1.16.6",
"@types/psl": "1.1.0",
"@types/reach__router": "1.3.9",
@ -7999,9 +8000,9 @@
}
},
"node_modules/@types/node": {
"version": "14.14.31",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.31.tgz",
"integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g=="
"version": "16.11.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz",
"integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw=="
},
"node_modules/@types/node-fetch": {
"version": "2.5.12",
@ -24803,6 +24804,11 @@
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"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": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
@ -33352,9 +33358,9 @@
}
},
"@types/node": {
"version": "14.14.31",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.31.tgz",
"integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g=="
"version": "16.11.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz",
"integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw=="
},
"@types/node-fetch": {
"version": "2.5.12",
@ -46069,6 +46075,11 @@
"socket.io-parser": "~4.0.3"
},
"dependencies": {
"@types/node": {
"version": "14.17.33",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.33.tgz",
"integrity": "sha512-noEeJ06zbn3lOh4gqe2v7NMGS33jrulfNqYFDjjEbhpDEHR5VTxgYNQSBqBlJIsBJW3uEYDgD6kvMnrrhGzq8g=="
},
"debug": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",

View File

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

View File

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