asserts.d.ts 545 B

1234567
  1. export declare function isPromiseMethod(x: string | symbol): x is "then" | "catch" | "finally";
  2. export declare function isKVMap(x: unknown): x is Record<string, unknown>;
  3. export declare const isAsyncIterable: (x: unknown) => x is AsyncIterable<unknown>;
  4. export declare const isIteratorLike: (x: unknown) => x is Iterator<unknown>;
  5. export declare const isGenerator: (x: unknown) => x is Generator;
  6. export declare const isThenable: (x: unknown) => x is Promise<unknown>;
  7. export declare const isReadableStream: (x: unknown) => x is ReadableStream;