UNPKG

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