Spaces:
Paused
Paused
Download node_modules/graphql/execution/mapAsyncIterator.d.ts from sam522/GenAI_Course: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/sam522/GenAI_Course/resolve/bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/execution/mapAsyncIterator.d.ts
- Command line
-
hf download hf://spaces/sam522/GenAI_Course@bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/execution/mapAsyncIterator.d.ts
-
curl -L -o mapAsyncIterator.d.ts https://huggingface.co/spaces/sam522/GenAI_Course/resolve/bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/execution/mapAsyncIterator.d.ts
413 Bytes
| import type { PromiseOrValue } from '../jsutils/PromiseOrValue'; | |
| /** | |
| * Given an AsyncIterable and a callback function, return an AsyncIterator | |
| * which produces values mapped via calling the callback function. | |
| */ | |
| export declare function mapAsyncIterator<T, U, R = undefined>( | |
| iterable: AsyncGenerator<T, R, void> | AsyncIterable<T>, | |
| callback: (value: T) => PromiseOrValue<U>, | |
| ): AsyncGenerator<U, R, void>; | |