1 | /**
|
2 | * A runtime object which captures compile-time type information.
|
3 | *
|
4 | * #### Notes
|
5 | * A token captures the compile-time type of an interface or class in
|
6 | * an object which can be used at runtime in a type-safe fashion.
|
7 | */
|
8 | export declare class Token<T> {
|
9 | /**
|
10 | * Construct a new token.
|
11 | *
|
12 | * @param name - A human readable name for the token.
|
13 | */
|
14 | constructor(name: string);
|
15 | /**
|
16 | * The human readable name for the token.
|
17 | *
|
18 | * #### Notes
|
19 | * This can be useful for debugging and logging.
|
20 | */
|
21 | readonly name: string;
|
22 | private _tokenStructuralPropertyT;
|
23 | }
|