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