Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Token<T>

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

  • T

Hierarchy

  • Token

Index

Constructors

Properties

Constructors

constructor

  • new Token(name: string): Token
  • Construct a new token.

    Parameters

    • name: string

      A human readable name for the token.

    Returns Token

Properties

Private _tokenStructuralPropertyT

_tokenStructuralPropertyT: T

name

name: string

The human readable name for the token.

Notes

This can be useful for debugging and logging.

Generated using TypeDoc