Interop Cheatsheet
This is a glossary with examples. All the features are described by later pages.
List of Decorators
Note: In previous versions (< 8.3) all our attributes started with a
bs.
prefix. Our formatter will automatically drop 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 Js.Nullable.t
:
JS Object
Function
Object Method & Chaining
Variadic Arguments
Polymorphic Function
JS Module Interop
Dangerous Type Cast
Final escape hatch converter. Do not abuse.