mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #26794 from ozylog/ozylog-cls-hooked-1
[@types/cls-hooked] Add runPromise(fn)
This commit is contained in:
Vendored
+1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user