UNPKG

actionhero

Version:

The reusable, scalable, and quick node.js API server for stateless and stateful applications

2 lines (1 loc) 168 B
export declare type UnwrapPromise<T> = T extends Promise<infer U> ? U : T extends (...args: any) => Promise<infer U> ? U : T extends (...args: any) => infer U ? U : T;