chore: update typescript to 5.0.2 (#22079)

This commit is contained in:
Pavel Feldman 2023-03-29 17:13:09 -07:00 committed by GitHub
parent 548e4a0c0f
commit d39ff3dc5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 20 deletions

30
package-lock.json generated
View File

@ -22,7 +22,7 @@
"@babel/plugin-transform-typescript": "^7.20.2", "@babel/plugin-transform-typescript": "^7.20.2",
"@babel/preset-react": "^7.18.6", "@babel/preset-react": "^7.18.6",
"@types/babel__core": "^7.20.0", "@types/babel__core": "^7.20.0",
"@types/codemirror": "^5.60.5", "@types/codemirror": "^5.60.7",
"@types/formidable": "^2.0.4", "@types/formidable": "^2.0.4",
"@types/node": "=14.18.34", "@types/node": "=14.18.34",
"@types/react": "^18.0.12", "@types/react": "^18.0.12",
@ -59,7 +59,7 @@
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"socksv5": "0.0.6", "socksv5": "0.0.6",
"ssim.js": "^3.5.0", "ssim.js": "^3.5.0",
"typescript": "^4.9.3", "typescript": "^5.0.2",
"vite": "^4.2.1", "vite": "^4.2.1",
"ws": "^8.5.0", "ws": "^8.5.0",
"xml2js": "^0.4.23", "xml2js": "^0.4.23",
@ -1411,9 +1411,9 @@
} }
}, },
"node_modules/@types/codemirror": { "node_modules/@types/codemirror": {
"version": "5.60.5", "version": "5.60.7",
"resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.5.tgz", "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.7.tgz",
"integrity": "sha512-TiECZmm8St5YxjFUp64LK0c8WU5bxMDt9YaAek1UqUb9swrSCoJhh92fWu1p3mTEqlHjhB5sY7OFBhWroJXZVg==", "integrity": "sha512-QXIC+RPzt/1BGSuD6iFn6UMC9TDp+9hkOANYNPVsjjrDdzKphfRkwQDKGp2YaC54Yhz0g6P5uYTCCibZZEiMAA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/tern": "*" "@types/tern": "*"
@ -5537,16 +5537,16 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "4.9.3", "version": "5.0.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
"integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==", "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
"dev": true, "dev": true,
"bin": { "bin": {
"tsc": "bin/tsc", "tsc": "bin/tsc",
"tsserver": "bin/tsserver" "tsserver": "bin/tsserver"
}, },
"engines": { "engines": {
"node": ">=4.2.0" "node": ">=12.20"
} }
}, },
"node_modules/universalify": { "node_modules/universalify": {
@ -7119,9 +7119,9 @@
} }
}, },
"@types/codemirror": { "@types/codemirror": {
"version": "5.60.5", "version": "5.60.7",
"resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.5.tgz", "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.7.tgz",
"integrity": "sha512-TiECZmm8St5YxjFUp64LK0c8WU5bxMDt9YaAek1UqUb9swrSCoJhh92fWu1p3mTEqlHjhB5sY7OFBhWroJXZVg==", "integrity": "sha512-QXIC+RPzt/1BGSuD6iFn6UMC9TDp+9hkOANYNPVsjjrDdzKphfRkwQDKGp2YaC54Yhz0g6P5uYTCCibZZEiMAA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/tern": "*" "@types/tern": "*"
@ -9766,9 +9766,9 @@
"dev": true "dev": true
}, },
"typescript": { "typescript": {
"version": "4.9.3", "version": "5.0.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
"integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==", "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
"dev": true "dev": true
}, },
"universalify": { "universalify": {

View File

@ -57,7 +57,7 @@
"@babel/plugin-transform-typescript": "^7.20.2", "@babel/plugin-transform-typescript": "^7.20.2",
"@babel/preset-react": "^7.18.6", "@babel/preset-react": "^7.18.6",
"@types/babel__core": "^7.20.0", "@types/babel__core": "^7.20.0",
"@types/codemirror": "^5.60.5", "@types/codemirror": "^5.60.7",
"@types/formidable": "^2.0.4", "@types/formidable": "^2.0.4",
"@types/node": "=14.18.34", "@types/node": "=14.18.34",
"@types/react": "^18.0.12", "@types/react": "^18.0.12",
@ -94,7 +94,7 @@
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"socksv5": "0.0.6", "socksv5": "0.0.6",
"ssim.js": "^3.5.0", "ssim.js": "^3.5.0",
"typescript": "^4.9.3", "typescript": "^5.0.2",
"vite": "^4.2.1", "vite": "^4.2.1",
"ws": "^8.5.0", "ws": "^8.5.0",
"xml2js": "^0.4.23", "xml2js": "^0.4.23",

View File

@ -6,6 +6,7 @@
"composite": true, "composite": true,
"lib": [], "lib": [],
"jsx": "react-jsx", "jsx": "react-jsx",
"types": ["node"] "types": ["node"],
"ignoreDeprecations": "5.0"
} }
} }

View File

@ -5,6 +5,7 @@
"allowJs": true, "allowJs": true,
"composite": true, "composite": true,
"lib": [], "lib": [],
"types": ["node"] "types": ["node"],
"ignoreDeprecations": "5.0"
} }
} }

View File

@ -74,9 +74,9 @@ test('should check types of fixtures', async ({ runTSC }) => {
baz: true, baz: true,
}); });
const fail9 = test.extend<{ foo: string }>({ const fail9 = test.extend<{ foo: string }>({
// @ts-expect-error
foo: [ async ({}, use) => { foo: [ async ({}, use) => {
await use('foo'); await use('foo');
// @ts-expect-error
}, { scope: 'test', auto: true } ], }, { scope: 'test', auto: true } ],
}); });
const fail10 = test.extend<{}, {}>({ const fail10 = test.extend<{}, {}>({