Represents a type definition.
fields:Array<Field>
The fields of the type definition.
@:optionalisExtern:Null<Bool>
Whether or not the type is extern.
kind:TypeDefKind
The kind of the type definition.
@:optionalmeta:Null<Metadata>
The optional metadata of the type definition.
name:String
The name of the type definition.
pack:Array<String>
The package of the type definition.
@:optionalparams:Null<Array<TypeParamDecl>>
The parameter type declarations of the type definition.
pos:Position
The position to the type definition.