DocsPlaygroundBlogCommunityPackages
  • Playground
  • Blog
  • Community
  • Packages
  • X
  • Bluesky
  • GitHub
  • Forum
Language ManualAPISyntax LookupReact

Syntax Lookup

Enter some language construct you want to know more about.
This is the @get decorator.

The @get decorator is used to bind to a property of an object.

Example

ReScriptJS Output
type window
@val external window: window = "window"
@get external getName: window => string = "name"

let name = getName(window)

References

  • Bind Using Special Getter and Setter Attributes

© 2025 The ReScript Project

About
  • Community
  • ReScript Association
Find us on