Token | @lumino (original) (raw)

A runtime object which captures compile-time type information.

Notes

A token captures the compile-time type of an interface or class in an object which can be used at runtime in a type-safe fashion.

Type Parameters

Index

Constructors

constructor

Type Parameters

Parameters

Returns Token<T>

Properties

Private _tokenStructuralPropertyT

_tokenStructuralPropertyT: T

Optional Readonly description

description?: string

Token purpose description.

Readonly name

name: string

The human readable name for the token.

Notes

This can be useful for debugging and logging.