Skip to content

Interface: ProvideContainerDecorator()<E> ​

Defined in: src/wirestate-lit/container/provide-container.ts:20

Describes the type returned by provideContainer.

Remarks ​

Supports both TC39 and legacy experimental decorators.

Type Parameters ​

Type ParameterDefault type
E extends ReactiveElementReactiveElement

Call Signature ​

ts
ProvideContainerDecorator<C, V>(value: ClassAccessorDecoratorTarget<C, V>, context: ClassAccessorDecoratorContext<C, V> & ProvidedTypeMustMatch<ContainerProvider<E>, V>): void;

Defined in: src/wirestate-lit/container/provide-container.ts:23

Describes the type returned by provideContainer.

Type Parameters ​

Type Parameter
C extends Interface<Omit<ReactiveElement, "renderRoot">>
V

Parameters ​

ParameterType
valueClassAccessorDecoratorTarget<C, V>
contextClassAccessorDecoratorContext<C, V> & ProvidedTypeMustMatch<ContainerProvider<E>, V>

Returns ​

void

Remarks ​

Supports both TC39 and legacy experimental decorators.

Call Signature ​

ts
ProvideContainerDecorator<C, V>(value: undefined, context: ClassFieldDecoratorContext<C, V> & ProvidedTypeMustMatch<ContainerProvider<E>, V>): void;

Defined in: src/wirestate-lit/container/provide-container.ts:29

Describes the type returned by provideContainer.

Type Parameters ​

Type Parameter
C extends Interface<Omit<ReactiveElement, "renderRoot">>
V

Parameters ​

ParameterType
valueundefined
contextClassFieldDecoratorContext<C, V> & ProvidedTypeMustMatch<ContainerProvider<E>, V>

Returns ​

void

Remarks ​

Supports both TC39 and legacy experimental decorators.

Call Signature ​

ts
ProvideContainerDecorator<K, Proto>(protoOrDescriptor: Proto, name?: K): FieldMustMatchProvidedType<Proto, K, ContainerProvider<E>>;

Defined in: src/wirestate-lit/container/provide-container.ts:34

Describes the type returned by provideContainer.

Type Parameters ​

Type Parameter
K extends PropertyKey
Proto extends Interface<Omit<ReactiveElement, "renderRoot">>

Parameters ​

ParameterType
protoOrDescriptorProto
name?K

Returns ​

FieldMustMatchProvidedType<Proto, K, ContainerProvider<E>>

Remarks ​

Supports both TC39 and legacy experimental decorators.