asyncIteratorReject.d.ts 204 B

123456
  1. /**
  2. * Given an error, returns an AsyncIterable which will fail with that error.
  3. *
  4. * Similar to Promise.reject(error)
  5. */
  6. export default function asyncIteratorReject(error: Error): AsyncIterator<void>;