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.
module type defines the required shape of a module.

Use module type to declare a module signature.

Example

ReScriptJS Output
module type Showable = {
  type t
  let show: t => string
}

module IntShow: Showable = {
  type t = int
  let show = x => Int.toString(x)
}

let rendered = IntShow.show(42)

References

  • Module

© 2026 The ReScript Project

About
  • Community
  • ReScript Association
Find us on