TypeFactoryLiteral Interface
Represents a literal type (specific string, number, or boolean value) in the type factory system.
This API is provided as an alpha preview and may change without notice.
To use, import via @fluidframework/tree-agent/alpha.
For more information about our API support guarantees, see here.
Signature
export interface TypeFactoryLiteral extends TypeFactoryType
Extends: TypeFactoryType
Properties
| Property | Alerts | Modifiers | Type | Description |
|---|---|---|---|---|
| _kind | Alpha | readonly | "literal" | The kind of type this represents. |
| value | Alpha | readonly | string | number | boolean | The specific literal value. |
Property Details
_kind
The kind of type this represents.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
readonly _kind: "literal";
Type: "literal"
value
The specific literal value.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
readonly value: string | number | boolean;
Type: string | number | boolean