Description

Defines the configuration for a function that generates a factory provider.

Index

core/abstraction/factories/common.ts

Properties

Properties

deps
deps: any[]
Type: any[]
Optional

(Optional) Any additional dependencies the factory will need.

token
token: InjectionToken<TToken>
Type: InjectionToken<TToken>
Optional

(Optional) The token for which the generated factory should be provided for. Default value depends on the generator implementation.

import { InjectionToken } from '@angular/core';

/**
 * Defines the configuration for a function that generates a factory provider.
 *
 * @export
 * @interface FactoryGeneratorConfig
 * @template TToken The type of token the created factory will be provided for.
 */
export interface FactoryGeneratorConfig<TToken>
{
    /**
     * (Optional) The token for which the generated factory should be provided for. Default value depends on the generator implementation.
     *
     * @type {InjectionToken<TToken>}
     */
    token?: InjectionToken<TToken>;
    /**
     * (Optional) Any additional dependencies the factory will need.
     *
     * @type {any[]}
     */
    deps? : any[];
}

results matching ""

    No results matching ""