viabiliza/node_modules/async-generator-function/index.d.ts
equipe desenvolvimento a499796cf7 first commit
2025-10-15 15:07:36 -03:00

22 lines
829 B
TypeScript

import type { AsyncFunction, AsyncFunctionConstructor } from 'async-function';
type AGF = AsyncGeneratorFunction;
declare namespace getAsyncGeneratorFunction {
interface AsyncGeneratorFunction extends AGF, AsyncFunction {
readonly [Symbol.toStringTag]: "AsyncGeneratorFunction";
}
// The constructor for an async generator function, like `(async function*(){}).constructor`
interface AsyncGeneratorFunctionConstructor {
(...args: string[]): AsyncGeneratorFunction;
new (...args: string[]): AsyncGeneratorFunction;
readonly prototype: AsyncGeneratorFunction;
}
export type { AsyncGeneratorFunctionConstructor };
}
declare function getAsyncGeneratorFunction(): getAsyncGeneratorFunction.AsyncGeneratorFunctionConstructor | false;
export = getAsyncGeneratorFunction;