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

View File

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

View File

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

View File

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

View File

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