Class UmbContextToken<BaseType, ResultType>

UmbContextToken

Type Parameters

  • BaseType = unknown

    A generic type of the API before decimated.

  • ResultType extends BaseType = BaseType

    A concrete type of the API after decimation, use this when you apply a discriminator method. Note this is optional and defaults to the BaseType.

Constructors

Properties

apiAlias: string = 'default'

Unique identifier for the api

contextAlias: string

Unique identifier for the context

TYPE: ResultType = ...

Get the type of the token

UmbContextToken

`typeof MyToken.TYPE`

undefined

Methods

  • This method must always return the unique alias of the token since that will be used to look up the token in the injector.

    Returns string

    the unique alias of the token

MMNEPVFCICPMFPCPTTAAATR