UNPKG

@reactivex/ix-es5-esm

Version:

The Interactive Extensions for JavaScript

9 lines (8 loc) 368 B
import { AsyncIterableX } from './asynciterablex.js'; /** * Creates an async-iterable that throws the specified error upon iterating. * * @param {*} error The error to throw upon iterating the async-iterable. * @returns {AsyncIterableX<never>} An async-iterable that throws when iterated. */ export declare function throwError(error: any): AsyncIterableX<never>;