UNPKG

@storm-stack/types

Version:

⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.

18 lines (17 loc) 617 B
/** * Check if the provided value's type is a promise * * @param value - The value to type check * @returns An indicator specifying if the object provided is of type a promise */ export declare const isPromise: (value: unknown) => value is Promise<unknown>; /** * Check if the provided value's type is a promise-like * * @remarks * A promise-like is an object that has a `then` function * * @param value - The value to type check * @returns An indicator specifying if the object provided is of type a promise-like */ export declare const isPromiseLike: (value: unknown) => value is PromiseLike<unknown>;