isPromise.d.ts 188 B

12345
  1. /**
  2. * Returns true if the value acts like a Promise, i.e. has a "then" function,
  3. * otherwise returns false.
  4. */
  5. export declare function isPromise(value: any): value is Promise<unknown>;