Interop Cheatsheet
This is a glossary with examples. All the features are described by later pages.
List of Decorators
Note: In ReScript < 8.3, all our attributes started with the
bs.
prefix. This is no longer needed and our formatter automatically removes them in newer ReScript versions.
Attributes
Extension Points
Raw JS
Global Value
Global Module's Value
Nullable
Handling a value that can be undefined
and null
, by ditching the option
type and using Nullable.t
:
JS Object
Function
Object Method & Chaining
Variadic Arguments
Tagged template functions
Polymorphic Function
JS Module Interop
Dangerous Type Cast
Final escape hatch converter. Do not abuse.