UNPKG

@xylabs/promise

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

7 lines 293 B
import type { TypedValue } from '@xylabs/typeof'; export interface PromiseType { then: () => unknown; } export type AnyNonPromise = Exclude<TypedValue, Promise<unknown>>; export declare const isPromise: (value: unknown) => value is Promise<unknown>; //# sourceMappingURL=isPromise.d.ts.map