Structural TypesΒΆ

A structural type is a type which members are explicitly declared. It is represented by a listing of members for types surrounded by square brackets [ ] and separated by a new line \n or a comma ,.

For instance, the following snippet:

[
    a: '', b: ''
    c: ''
]

represents a structural type declaring three members a, b and c.