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

@@ -336,7 +336,7 @@ export function* splitInChunks(array: string[], maxChunkLength: number): Iterabl
interface ILimitedTaskFactory<T> {
factory: () => Promise<T>;
c: (value?: T | Promise<T>) => void;
c: (value: T | Promise<T>) => void;
e: (error?: any) => void;
}
@@ -353,7 +353,7 @@ export class Limiter<T> {
}
queue(factory: () => Promise<T>): Promise<T> {
return new Promise<any>((c, e) => {
return new Promise((c, e) => {
this.outstandingPromises.push({ factory, c, e });
this.consume();
});