zibri
    Preparing search index...

    A DI provider.

    type DiProvider<T> = {
        token: DiToken<T>;
        useClass?: Newable<T>;
        useFactory?: (...deps: unknown[]) => T;
    }

    Type Parameters

    • T
    Index

    Properties

    token: DiToken<T>

    The token under which the value should be registered.

    useClass?: Newable<T>

    A class to register for the token.

    useFactory?: (...deps: unknown[]) => T

    A factory function that resolves the value to register for the token.