The @set decorator is used to set a property of an object.
@set
type window @val external window: window = "window" @set external setName: (window, string) => unit = "name" setName(window, "MyWindow")
Bind Using Special Getter and Setter Attributes