Skip to content

Type Alias: InjectionFallback<F>

ts
type InjectionFallback<F> = 
  | F
  | ((container: Container) => F);

Defined in: src/wirestate-react/injection/use-injection.ts:13

A fallback for an optional injection: a raw value or a (container) => value factory, used only when the token is not bound.

Type Parameters

Type Parameter
F