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) 128 B
/** * checks whether the value is a promise */ export declare const isAPromise: <T = any>(obj: unknown) => obj is Promise<T>;