Update dependency typescript to v4.1.2 (#5703)

This commit is contained in:
renovate[bot] 2020-11-20 13:53:31 -05:00 committed by GitHub
parent 3e56996a75
commit bb9a78979d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 14 deletions

6
package-lock.json generated
View File

@ -8321,9 +8321,9 @@
"dev": true
},
"typescript": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.5.tgz",
"integrity": "sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.2.tgz",
"integrity": "sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==",
"dev": true
},
"typical": {

View File

@ -1076,7 +1076,7 @@
"sinon": "9.2.1",
"ts-loader": "8.0.9",
"tslint": "6.1.3",
"typescript": "4.0.5",
"typescript": "4.1.2",
"vscode-test": "1.4.1",
"webpack": "5.6.0",
"webpack-cli": "4.2.0",

View File

@ -33,7 +33,7 @@ export abstract class TextObjectMovement extends BaseMovement {
return res;
}
public abstract async execAction(position: Position, vimState: VimState): Promise<IMovement>;
public abstract execAction(position: Position, vimState: VimState): Promise<IMovement>;
}
@RegisterAction

View File

@ -577,7 +577,7 @@ async function testItWithRemaps(
};
const p2 = () => {
return new Promise<ResultType>((p2Resolve, p2Reject) => {
return new Promise<ResultType | undefined>((p2Resolve, p2Reject) => {
if (waitsForTimeout) {
setTimeout(async () => {
if (modeHandler.vimState.isCurrentlyPerformingRemapping) {
@ -604,7 +604,7 @@ async function testItWithRemaps(
});
}, timeout + timeoutOffset);
} else {
p2Resolve();
p2Resolve(undefined);
}
});
};
@ -648,7 +648,7 @@ async function testItWithRemaps(
);
}
if (waitsForTimeout) {
if (result2) {
// After the timeout finishes (plus an offset to be sure it finished)
assert.notStrictEqual(result2, undefined);

View File

@ -86,7 +86,7 @@ export async function removeDir(fsPath: string) {
* @param numExpectedEditors Expected number of editors in the window
*/
export async function WaitForEditorsToClose(numExpectedEditors: number = 0): Promise<void> {
const waitForTextEditorsToClose = new Promise((c, e) => {
const waitForTextEditorsToClose = new Promise<void>((c, e) => {
if (vscode.window.visibleTextEditors.length === numExpectedEditors) {
return c();
}
@ -150,7 +150,7 @@ const mockAndEnable = async () => {
};
export async function cleanUpWorkspace(): Promise<void> {
return new Promise((c, e) => {
return new Promise<void>((c, e) => {
if (vscode.window.visibleTextEditors.length === 0) {
return c();
}

View File

@ -5354,10 +5354,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.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
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==
typical@^5.0.0, typical@^5.2.0:
version "5.2.0"