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

Interface: OptionalDependency<K> ​

Defined in: src/types.ts:24

A dependency created by optional: resolves to the service, or undefined when it is not registered.

Type Parameters ​

K ​

K extends ServiceKey = ServiceKey

Properties ​

[optionalDependencyBrand] ​

readonly [optionalDependencyBrand]: K

Defined in: src/types.ts:25

Released under the MIT License.