Skip to main content

Class: Optional

optional.Optional

NOTE: does not support Changing dependencies without @inject.

Constructors

constructor

new Optional(identifier)

Parameters

NameType
identifierServiceIdentifier<any>

Defined in

packages/reactant-di/src/optional.ts:9

Properties

identifier

identifier: ServiceIdentifier<any>

Defined in

packages/reactant-di/src/optional.ts:9

Accessors

key

get key(): symbol

Returns

symbol

Defined in

packages/reactant-di/src/optional.ts:11