Cleanup typings from vs code merge (#14267)

This commit is contained in:
Charles Gagnon
2021-02-11 22:18:03 -08:00
committed by GitHub
parent 75cda19504
commit e8d02dbc44
7 changed files with 20 additions and 18 deletions

View File

@@ -3,11 +3,11 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export class Deferred<T> {
export class Deferred<T = void> {
promise: Promise<T> = new Promise<T>((resolve, reject) => {
this.resolve = <any>resolve;
this.resolve = resolve;
this.reject = reject;
});;
resolve!: (value?: T | PromiseLike<T>) => void;
resolve!: (value: T | PromiseLike<T>) => void;
reject!: (reason?: any) => void;
}