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

    Type Alias Factory<Type, Initial>

    Factory: (initialValue: Initial extends true ? Type : Type | undefined) => Type

    Factory describes a generic factory function signature. The type is generic over a few parameters:

    Type Parameters

    • Type

      type the factory produces

    • Initial extends boolean

      true if the initialValue passed to the factory must be defined

    Type Declaration