@reactivex/ix-es5-esm
Version:
The Interactive Extensions for JavaScript
9 lines (8 loc) • 358 B
TypeScript
import { IterableX } from './iterablex.js';
/**
* Creates an async-iterable that throws the specified error upon iterating.
*
* @param {*} error The error to throw upon iterating the iterable.
* @returns {AsyncIterableX<never>} An iterable that throws when iterated.
*/
export declare function throwError<TSource = any>(error: any): IterableX<TSource>;