Update TS versions (#157550)

* Update TS versions

Update the bundled TS and build TS version

* Add explicit annotations

* Recompile JS
This commit is contained in:
Matt Bierner 2022-08-09 11:26:24 -07:00 committed by GitHub
parent b247c10516
commit 460768a452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 16 deletions

View file

@ -17,7 +17,7 @@ module.exports = new (_a = class ApiProviderNaming {
const allowed = new Set(config.allowed);
return {
['TSInterfaceDeclaration[id.name=/.+Provider/] TSMethodSignature']: (node) => {
const interfaceName = node.parent?.parent.id.name;
const interfaceName = (node.parent?.parent).id.name;
if (allowed.has(interfaceName)) {
// allowed
return;

View file

@ -4,7 +4,7 @@
"license": "MIT",
"description": "Dependencies shared by all extensions",
"dependencies": {
"typescript": "^4.8.0-dev.20220801"
"typescript": "^4.8.0-dev.20220808"
},
"scripts": {
"postinstall": "node ./postinstall.mjs"

View file

@ -42,10 +42,10 @@ node-gyp-build@^4.3.0:
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.3.0.tgz#9f256b03e5826150be39c764bf51e993946d71a3"
integrity sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q==
typescript@^4.8.0-dev.20220801:
version "4.8.0-dev.20220801"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.0-dev.20220801.tgz#547ae7fea513fde4058f6715afa673b388e73129"
integrity sha512-idPY4geCSbS6npeHcr4m4nITkxz0/w4LmLSAao0UGvaWoHGFfkThJZhCXWFAx9TxQV1zZUWgXmngJBjfTm3otw==
typescript@^4.8.0-dev.20220808:
version "4.8.0-dev.20220808"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.0-dev.20220808.tgz#cff17ca0c513c5069311e855a9c5c751065042ba"
integrity sha512-afg7R/XsBD3mkS0orQD4Vy3dxHEijC0uqp46+i51lf5yfvvQRuhLQDY2F/OMOxD0U1ZwP3pliGs2U4UrqNHJ6g==
vscode-grammar-updater@^1.1.0:
version "1.1.0"

View file

@ -201,7 +201,7 @@
"style-loader": "^1.3.0",
"ts-loader": "^9.2.7",
"tsec": "0.1.4",
"typescript": "^4.8.0-dev.20220801",
"typescript": "^4.8.0-dev.20220808",
"typescript-formatter": "7.1.0",
"underscore": "^1.12.1",
"util": "^0.12.4",

View file

@ -127,11 +127,11 @@ export class ExtensionManagementChannelClient extends Disposable implements IExt
}
zip(extension: ILocalExtension): Promise<URI> {
return Promise.resolve(this.channel.call('zip', [extension]).then(result => URI.revive(<UriComponents>result)));
return Promise.resolve(this.channel.call<UriComponents>('zip', [extension]).then(result => URI.revive(result)));
}
unzip(zipLocation: URI): Promise<IExtensionIdentifier> {
return Promise.resolve(this.channel.call('unzip', [zipLocation]));
return Promise.resolve(this.channel.call<IExtensionIdentifier>('unzip', [zipLocation]));
}
install(vsix: URI, options?: ServerInstallVSIXOptions): Promise<ILocalExtension> {
@ -147,11 +147,11 @@ export class ExtensionManagementChannelClient extends Disposable implements IExt
}
uninstall(extension: ILocalExtension, options?: ServerUninstallOptions): Promise<void> {
return Promise.resolve(this.channel.call('uninstall', [extension!, options]));
return Promise.resolve(this.channel.call<void>('uninstall', [extension!, options]));
}
reinstallFromGallery(extension: ILocalExtension): Promise<void> {
return Promise.resolve(this.channel.call('reinstallFromGallery', [extension]));
return Promise.resolve(this.channel.call<void>('reinstallFromGallery', [extension]));
}
getInstalled(type: ExtensionType | null = null, extensionsProfileResource?: URI): Promise<ILocalExtension[]> {
@ -174,7 +174,7 @@ export class ExtensionManagementChannelClient extends Disposable implements IExt
}
getExtensionsControlManifest(): Promise<IExtensionsControlManifest> {
return Promise.resolve(this.channel.call('getExtensionsControlManifest'));
return Promise.resolve(this.channel.call<IExtensionsControlManifest>('getExtensionsControlManifest'));
}
registerParticipant() { throw new Error('Not Supported'); }

View file

@ -10559,10 +10559,10 @@ typescript@^2.6.2:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4"
integrity sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=
typescript@^4.8.0-dev.20220801:
version "4.8.0-dev.20220801"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.0-dev.20220801.tgz#547ae7fea513fde4058f6715afa673b388e73129"
integrity sha512-idPY4geCSbS6npeHcr4m4nITkxz0/w4LmLSAao0UGvaWoHGFfkThJZhCXWFAx9TxQV1zZUWgXmngJBjfTm3otw==
typescript@^4.8.0-dev.20220808:
version "4.8.0-dev.20220808"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.0-dev.20220808.tgz#cff17ca0c513c5069311e855a9c5c751065042ba"
integrity sha512-afg7R/XsBD3mkS0orQD4Vy3dxHEijC0uqp46+i51lf5yfvvQRuhLQDY2F/OMOxD0U1ZwP3pliGs2U4UrqNHJ6g==
typical@^4.0.0:
version "4.0.0"