Skip to main content
Version: 0.1.2

Type Alias: InjectionProvidersConfig

Imported from @react-logic/di

InjectionProvidersConfig = object

The shape of the provide prop accepted by <Injector>. Extracted so it can be reused on custom wrapper components that pass providers through.

Properties

provide?

optional provide?: ProviderEntry[]

Providers to add to the surrounding injection scope. Bare classes are accepted as shorthand for { provide: C, useClass: C }. The order of the array doesn't matter; tokens are looked up by identity.