UNPKG

@infoloop-opensource/abstractions

Version:
23 lines (22 loc) 425 B
/** * @module generator */ export interface Generator<T> { (): Promise<T>; } /** * TODO: better description of params */ export interface ParameterizedGenerator<T> { (...params: any[]): Promise<T>; } /** * semantic alias * @alias module:unary.Generator */ export declare type Supplier<T> = Generator<T>; /** * semantic alias * @alias module:unary.Supplier */ export declare type Producer<T> = Generator<T>;