UNPKG

@chasemoskal/magical

Version:

web toolkit for lit apps

9 lines (6 loc) 247 B
export type AnyFunction = (...args: any[]) => any export type DebounceReturn<xAction extends AnyFunction> = (...args: Parameters<xAction>) => ReturnType<xAction> extends Promise<any> ? ReturnType<xAction> : Promise<ReturnType<xAction>>