UNPKG

response-iterator

Version:

Creates an async iterator for a variety of inputs in the browser and node. Supports fetch, node-fetch, and cross-fetch

5 lines (4 loc) 173 B
/** * @param response A response. Supports fetch, node-fetch, and cross-fetch */ export default function responseIterator<T>(response: unknown): AsyncIterableIterator<T>;