Skip to content

Commit e3e0463

Browse files
committed
add note for @@deprecated
1 parent bb29048 commit e3e0463

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

analysis/src/CompletionDecorators.ml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ It is also possible to map a ReScript record to a JavaScript array by passing in
3030
[
3131
{|The `@deprecated` decorator is used to add deprecation notes to types, values and submodules. The compiler and editor tooling will yield a warning whenever a deprecated entity is being used.
3232

33+
Alternatively, use the `@@deprecated` decorator to add a deprecation warning to the file level.
34+
3335
[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#expression-deprecated-decorator).|};
3436
] );
3537
( "doesNotRaise",

0 commit comments

Comments
 (0)