Optional ReadonlynameAn optional name to qualify this provider. If specified, the token must be resolved using the same name.
Example:
export class ExtensionContext {
// Decorator-based injection
constructor(@Inject(ISecretStorage) @Named("persistent") secretStorage: SecretStorage) {}
// Function-based injection
constructor(secretStorage = inject(ISecretStorage, "persistent")) {}
}
ReadonlyuseThe static value to associate with the token.
Provides a static - already constructed - value for a token.