diff --git a/package.json b/package.json index 6c0a258..a74fa46 100644 --- a/package.json +++ b/package.json @@ -627,6 +627,6 @@ "which": "^2.0.2" }, "dependencies": { - "typescript": "4.0.5" + "typescript": "4.1.2" } } diff --git a/src/server/features/updatePathOnRename.ts b/src/server/features/updatePathOnRename.ts index ba453de..1e91d65 100644 --- a/src/server/features/updatePathOnRename.ts +++ b/src/server/features/updatePathOnRename.ts @@ -11,7 +11,7 @@ import * as typeConverters from '../utils/typeConverters' import FileConfigurationManager from './fileConfigurationManager' import { Mutex } from '../utils/mutex' -function wait(ms: number): Promise { +function wait(ms: number): Promise { return new Promise(resolve => { setTimeout(() => { resolve() diff --git a/src/server/utils/typingsStatus.ts b/src/server/utils/typingsStatus.ts index d204b40..584baaf 100644 --- a/src/server/utils/typingsStatus.ts +++ b/src/server/utils/typingsStatus.ts @@ -96,7 +96,7 @@ export class AtaProgressReporter { clearTimeout(handle) resolve() }) - }) + }) as Promise this.statusItem.text = 'Fetching data for better TypeScript IntelliSense' this.statusItem.show() } diff --git a/yarn.lock b/yarn.lock index b77f7a7..8010df1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3097,10 +3097,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@4.0.5: - version "4.0.5" - resolved "https://registry.npmjs.org/typescript/-/typescript-4.0.5.tgz" - integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ== +typescript@4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9" + integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ== union-value@^1.0.0: version "1.0.1"