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")) {}
}
ReadonlyuseA function that produces the value at resolution time.
The function runs inside the injection context and can access dependencies via inject-like helpers.
Provides a value for a token via a factory function.