@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
10 lines (9 loc) • 366 B
TypeScript
import { IterableX } from './iterablex';
/**
* Creates an async-iterable that throws the specified error upon iterating.
*
* @export
* @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>;