Logo Xantham

TsEnumCase Type

Represents a single enum case in TypeScript.

Reflects:
EnumMember in the TS AST and literal enum values in the TS type system.

Example

 enum Color { Red = 0, Green = 1 }
 // GlueEnumCase for "Red" with value 0
val enum: value: int32 -> 'U (requires enum)

Record fields

Record Field Description

Documentation

Full Usage: Documentation

Field type: TsComment list
Field type: TsComment list

FullyQualifiedName

Full Usage: FullyQualifiedName

Field type: string list
Field type: string list

Name

Full Usage: Name

Field type: string
Field type: string

Parent

Full Usage: Parent

Field type: TypeKey
Field type: TypeKey

Source

Full Usage: Source

Field type: string option
Field type: string option

Value

Full Usage: Value

Field type: TsLiteral
Field type: TsLiteral

Type something to start searching.