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 @ignore decorator.

The @ignore decorator "hides" a parameter of an external function on the JS side. It's useful give a function call more type context without impacting the resulting JS.

ReScriptJS Output
@val external doSomething: (@ignore 'a, 'a) => unit = "doSomething"

doSomething("this only shows up in ReScript code", "test")

References

  • Bind to JS Function (Ignore Arguments)

© 2025 The ReScript Project

About
  • Community
  • ReScript Association
Find us on