mirror of
https://github.com/luxfi/lux-sign.git
synced 2026-10-30 16:20:38 +00:00
3 lines
196 B
TypeScript
3 lines
196 B
TypeScript
export declare type ItOrItsPromise<T> = T extends Promise<any> ? T : Promise<T>;
|
|
export declare type ItsGenerator<T, ARGS extends any[] = any[]> = T extends Function ? T : ((...args: ARGS) => T);
|