mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
12 lines
447 B
TypeScript
12 lines
447 B
TypeScript
import { PromiseOrValue } from '../jsutils/PromiseOrValue';
|
|
|
|
/**
|
|
* Given an AsyncIterable and a callback function, return an AsyncIterator
|
|
* which produces values mapped via calling the callback function.
|
|
*/
|
|
export default function mapAsyncIterator<T, U>(
|
|
iterable: AsyncIterable<T>,
|
|
callback: (arg: T) => PromiseOrValue<U>,
|
|
rejectCallback?: (arg: any) => PromiseOrValue<U>,
|
|
): any; // TS_SPECIFIC: AsyncGenerator requires typescript@3.6
|