Skip to content

Interface: ContainerProviderDecorator()<E>

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

Represents the type returned by containerProvide.

Remarks

Supports both TC39 and legacy experimental decorators.

Type Parameters

Type ParameterDefault type
E extends ReactiveElementReactiveElement

Call Signature

ts
ContainerProviderDecorator<C, V>(value: ClassAccessorDecoratorTarget<C, V>, context: ClassAccessorDecoratorContext<C, V>): void;

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

Represents the type returned by containerProvide.

Type Parameters

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

Parameters

ParameterType
valueClassAccessorDecoratorTarget<C, V>
contextClassAccessorDecoratorContext<C, V>

Returns

void

Remarks

Supports both TC39 and legacy experimental decorators.

Call Signature

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

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

Represents the type returned by containerProvide.

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.