1 | import { AsyncIterableX } from './asynciterablex';
|
2 | /**
|
3 | * Converts the callback function into wrapped function which returns an async-iterable.
|
4 | *
|
5 | * @export
|
6 | * @template TSource The type of the value returned from the callback.
|
7 | * @param {Function} func The callback function to wrap as an async-iterable.
|
8 | * @returns {(...args: any[]) => AsyncIterableX<TSource>} A function when invoked, returns an async-iterable from the callback.
|
9 | */
|
10 | export declare function asyncify<TSource>(func: Function): (...args: any[]) => AsyncIterableX<TSource>;
|