import { createConfigInjectionToken } from '@daffodil/core'
Creates an injection token/provider pair for a DI token that holds a configuration.
function createConfigInjectionToken<T = unknown>(
defaultConfig: T | InjectionToken<T>
desc: [string, { providedIn?: Type<any> | "any" | "root" | "platform"; factory: () => unknown; }?]
options?: [string?, { providedIn?: Type<any> | "any" | "root" | "platform"; factory: () => unknown; }?]
): DaffConfigInjectionToken<T>
| Parameter | defaultConfig: T | InjectionToken<T> |
|---|---|
| Description |
| Parameter | desc: [string, { providedIn?: Type<any> | "any" | "root" | "platform"; factory: () => unknown; }?] |
|---|---|
| Description |
| Parameter | options: [string?, { providedIn?: Type<any> | "any" | "root" | "platform"; factory: () => unknown; }?] |
|---|---|
| Description |