The @get decorator is used to bind to a property of an object.
@get
type window @val external window: window = "window" @get external getName: window => string = "name" let name = getName(window)
Bind Using Special Getter and Setter Attributes