UNPKG

geninq

Version:

A JavaScript version of the Linq library for Generators

19 lines (18 loc) 676 B
declare global { interface Generator<T = unknown, TReturn = any, TNext = unknown> { /** * Converts the sequence into an AsyncGenerator for asynchrones processing. * @returns A type safe async generator */ async(): AsyncGenerator<T, TReturn, TNext>; } interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> { /** * Converts the sequence into an AsyncGenerator for asynchrones processing. * Present for when you do not know if you sequence is async or not. * @returns The original subject. */ async(): AsyncGenerator<T, TReturn, TNext>; } } export {};