Provides a static - already constructed - value for a token.
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 static value to associate with the token.
Provides a static - already constructed - value for a token.