Syntax Lookup

Enter some language construct you want to know more about.
This is the @scope decorator.

The @scope decorator is used with other decorators such as @val and @module to declare a parent scope for the binding.

Example

ReScriptJS Output
@scope("Math") @val
external floor: float => int = "floor"

let result = floor(3.4)

References