Skip to content

Interface: InjectionDecorator()<T>

Defined in: src/wirestate-lit/consumption/injection.ts:16

Represents type returned by injection.

Remarks

Supports both TC39 and legacy experimental decorators.

Type Parameters

Type Parameter
T

Call Signature

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

Defined in: src/wirestate-lit/consumption/injection.ts:18

Represents type returned by injection.

Type Parameters

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

Parameters

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

Returns

void

Remarks

Supports both TC39 and legacy experimental decorators.

Call Signature

ts
InjectionDecorator<K, Proto>(protoOrDescriptor: Proto, name?: K): FieldMustMatchProvidedType<Proto, K, T>;

Defined in: src/wirestate-lit/consumption/injection.ts:23

Represents type returned by injection.

Type Parameters

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

Parameters

ParameterType
protoOrDescriptorProto
name?K

Returns

FieldMustMatchProvidedType<Proto, K, T>

Remarks

Supports both TC39 and legacy experimental decorators.