mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-30 21:41:46 +01:00
git: remove denodeify dependency
This commit is contained in:
@@ -88,4 +88,8 @@ export function groupBy<T>(arr: T[], fn: (el: T) => string): { [key: string]: T[
|
||||
result[key] = [...(result[key] || []), el];
|
||||
return result;
|
||||
}, Object.create(null));
|
||||
}
|
||||
}
|
||||
|
||||
export function denodeify<R>(fn: Function): (...args) => Promise<R> {
|
||||
return (...args) => new Promise((c, e) => fn(...args, (err, r) => err ? e(err) : c(r)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user