When defining a structure type, Haxe allows using the same syntax as described in Class Fields. The following typedef declares a Point type with variable fields x and y of type Int:
Point
x
y
Int
typedef Point = { var x : Int; var y : Int; }