You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: analysis/src/CompletionDecorators.ml
+13
Original file line number
Diff line number
Diff line change
@@ -297,4 +297,17 @@ let toplevel =
297
297
298
298
[Read more andsee examples in the documentation](https://rescript-lang.org/docs/manual/latest/jsx#file-level-configuration).|};
299
299
] );
300
+
( "notUndefined",
301
+
None,
302
+
[
303
+
{|The `@notUndefined` decorator marks an abstract typeas one that can never be `undefined` in JavaScript. This allows the compiler to generate more efficient code when the type is used inside an `option`.
304
+
305
+
Example usage:
306
+
```rescript
307
+
@notUndefined
308
+
type t
309
+
```
310
+
311
+
[Read more andsee examples in the documentation](https://rescript-lang.org/syntax-lookup#notundefined-decorator).|};
0 commit comments