Merge pull request #26794 from ozylog/ozylog-cls-hooked-1

[@types/cls-hooked] Add runPromise(fn)
This commit is contained in:
Paul van Brenk
2018-06-26 10:33:33 -07:00
committed by GitHub
+1
View File
@@ -14,6 +14,7 @@ export interface Namespace {
get(key: string): any;
run(fn: (...args: any[]) => void): void;
runAndReturn<T>(fn: (...args: any[]) => T): T;
runPromise<T>(fn: (...args: any[]) => Promise<T>): Promise<T>;
bind<F extends Function>(fn: F, context?: any): F; // tslint:disable-line: ban-types
bindEmitter(emitter: EventEmitter): void;
createContext(): any;