UNPKG

type-fns

Version:

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

6 lines (5 loc) 197 B
export type NotPromise<T> = T extends Promise<any> ? never : T; /** * checks whether the value is a promise */ export declare const isNotPromise: <T = any>(obj: unknown) => obj is NotPromise<T>;