xInjection for ReactJS - v1.0.2
    Preparing search index...

    Type Alias UseInjectOptions<IsOptional, AsList>

    type UseInjectOptions<
        IsOptional extends boolean
        | undefined = undefined,
        AsList extends boolean | undefined = undefined,
    > = {
        asList?: AsList;
        isOptional?: IsOptional;
    }

    Type Parameters

    • IsOptional extends boolean | undefined = undefined
    • AsList extends boolean | undefined = undefined
    Index

    Properties

    Properties

    asList?: AsList

    Set to true if you need to retrieve all the bound identifiers of the supplied ProviderToken.

    Defaults to false.

    isOptional?: IsOptional

    When set to false an exception will be thrown when the supplied ProviderToken isn't bound.

    Defaults to false.