Type Alias FactoryFn<TArgs, R>

FactoryFn<TArgs, R>: ((...args: TArgs) => R | Promise<R>)

A factory function that creates a value with a list of arguments.

Type Parameters

  • TArgs extends readonly unknown[]

    The argument types for the FactoryFn.

  • R

    The return type.