Documents injecute 1.x · Migrating from 0.x
Skip to content

Interface: InstanceOptions<T, R> ​

Defined in: src/types.ts:193

Options for ServiceRegistry.addInstance.

Type Parameters ​

T ​

T

R ​

R extends boolean = boolean

Properties ​

dispose? ​

optional dispose?: DisposeOption<T>

Defined in: src/types.ts:197

The container does not own added instances; set this to dispose them with the container. Default: false.


replace? ​

optional replace?: R

Defined in: src/types.ts:195

Replace an existing registration of this key (see RegistrationOptions.replace).

Released under the MIT License.