UNPKG

366 BTypeScriptView Raw
1import { 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 */
9export declare function throwError<TSource = any>(error: any): IterableX<TSource>;