Documentation - v1.2.0-alpha.3
    Preparing search index...

    Type Alias DependencyFactory<Type, Dependencies, Initial>

    DependencyFactory: (
        dependencies: Dependencies,
        initialValue: Initial extends true ? Type : Type | undefined,
    ) => Type

    DependencyFactory is a function signature that produces an instance that depends on a set of other services. The type is generic over a few parameters:

    Type Parameters

    • Type

      type the factory produces

    • Dependencies

      the services this factory function depends on

    • Initial extends boolean

      true if the initialValue passed to the factory must be defined

    Type Declaration