1 | import { AsyncIterableX } from './asynciterablex';
|
2 | /**
|
3 | * Creates an async-iterable that throws the specified error upon iterating.
|
4 | *
|
5 | * @export
|
6 | * @param {*} error The error to throw upon iterating the async-iterable.
|
7 | * @returns {AsyncIterableX<never>} An async-iterable that throws when iterated.
|
8 | */
|
9 | export declare function throwError(error: any): AsyncIterableX<never>;
|