Syntax Lookup

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

The @@deprecated decorator is used to add a deprecation note to the file-level of a module. The compiler and editor tooling will yield a warning whenever a deprecated file module is being used.

For more fine-grained control, use the @deprecated decorator to add deprecation warnings to specific types, values and submodules.

Examples

ReScriptJS Output
// Indicate whole module is deprecated
@@deprecated

// Indicate whole module is deprecated, with a comment
@@deprecated("Use OtherModule instead")