@lppedd/di-wise-neo - v0.11.1
    Preparing search index...

    Interface ValueProvider<Value>

    Provides a static - already constructed - value for a token.

    interface ValueProvider<Value> {
        name?: string;
        useValue: Value;
    }

    Type Parameters

    • Value
    Index

    Properties

    Properties

    name?: string

    An optional name to qualify this provider. If specified, the token must be resolved using the same name.

    export class ExtensionContext {
    // Decorator-based injection
    constructor(@Inject(ISecretStorage) @Named("persistent") secretStorage: SecretStorage) {}

    // Function-based injection
    constructor(secretStorage = inject(ISecretStorage, "persistent")) {}
    }
    useValue: Value

    The static value to associate with the token.