1 | import { IterableX } from './iterablex';
|
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 iterable.
|
7 | * @returns {AsyncIterableX<never>} An iterable that throws when iterated.
|
8 | */
|
9 | export declare function throwError<TSource = any>(error: any): IterableX<TSource>;
|