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

    Interface ExistingProvider<Value>

    Aliases another registered token.

    Resolving this token will return the value of the aliased one.

    interface ExistingProvider<Value> {
        name?: string;
        useExisting: Token<Value> | [Token<Value>, string?];
    }

    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")) {}
    }
    useExisting: Token<Value> | [Token<Value>, string?]

    The existing token to alias.