iter.d.ts 637 B

123456
  1. import type { RunnableConfig } from "../runnables/types.js";
  2. export declare function isIterableIterator(thing: unknown): thing is IterableIterator<unknown>;
  3. export declare const isIterator: (x: unknown) => x is Iterator<unknown, any, undefined>;
  4. export declare function isAsyncIterable(thing: unknown): thing is AsyncIterable<unknown>;
  5. export declare function consumeIteratorInContext<T>(context: Partial<RunnableConfig> | undefined, iter: IterableIterator<T>): IterableIterator<T>;
  6. export declare function consumeAsyncIterableInContext<T>(context: Partial<RunnableConfig> | undefined, iter: AsyncIterable<T>): AsyncIterableIterator<T>;