Skip to main content
Version: 2.x

ContextDecorator type

@microsoft/fast-element/context.js > ContextDecorator

ContextDecorator type

A constant key that can be used to represent a Context dependency. The key can be used for context or DI but also doubles as a decorator for resolving the associated dependency.

Signature:

export declare type ContextDecorator<T = any> = Readonly<Context<T>> & PropertyDecorator & ParameterDecorator;

References: Context