Type Alias: OptionalInjectionFallback<T>
ts
type OptionalInjectionFallback<T> = (container: Container) => T;Defined in: src/wirestate-lit/consumption/use-optional-injection.ts:16
Provides a fallback value when an optional injection is not bound.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
container | Container |
Returns
T