UNPKG

type-fns

Version:

A set of types, type checks, and type guards for simpler, safer, and easier to read code.

5 lines (4 loc) 124 B
/** * checks whether the value is a promise */ export declare const isAPromise: <T = any>(obj: any) => obj is Promise<T>;