Aliases another registered token.
Resolving this token will return the value of the aliased one.
Optional
Readonly
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")) {}} Copy
export class ExtensionContext { // Decorator-based injection constructor(@Inject(ISecretStorage) @Named("persistent") secretStorage: SecretStorage) {} // Function-based injection constructor(secretStorage = inject(ISecretStorage, "persistent")) {}}
The existing token to alias.
Aliases another registered token.
Resolving this token will return the value of the aliased one.