1 | import { AsyncIterableX } from './asynciterablex';
|
2 | /**
|
3 | * Converts a Node.js style error first callback to an async-iterable sequence.
|
4 | *
|
5 | * @export
|
6 | * @template TSource The type of the returned value from the callback.
|
7 | * @param {Function} func The Node.js error first callback to convert to an async-iterable.
|
8 | * @returns {(...args: any[]) => AsyncIterableX<TSource>} A function, when invoked, contains the result of the callback as an async-iterable.
|
9 | */
|
10 | export declare function asyncifyErrback<TSource>(func: Function): (...args: any[]) => AsyncIterableX<TSource>;
|