ReScript HomeReScript Home
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 object type syntax.

Use quoted field names inside { ... } to define an object type.

Example

ReScriptJS Output
type user = {"name": string, "age": int}

let u: user = {"name": "Ada", "age": 36}

References

  • Object

© 2026 The ReScript Project

About
  • Community
  • ReScript Association
Find us on