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: pages/docs/gentype/latest/usage.mdx
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,6 @@ If both `Foo.resi` and `Foo.res` exist, the annotations are taken from `Foo.resi
111
111
112
112
The behaviour can be overridden by adding annotation `@genType.ignoreInterface` at the top of `Foo.resi`. Use case: expose implementation details to JS but not to ReScript.
113
113
114
-
115
114
## Type Expansion and @genType.opaque
116
115
117
116
If an exported type `persons` references other types in its definition, those types are also exported by default, as long as they are defined in the same file:
**NOTE:** For technical reasons, it is not possible to use `@genType.as` on the first argument of a function (restriction lifted on OCaml 4.0.6).
201
+
**NOTE:** For technical reasons, it is not possible to use `@genType.as` on the first argument of a function.
203
202
204
203
## Dependent Projects / Libraries
205
204
206
205
ReScript dependencies are specified in `bs-dependencies`.
207
-
For example, if the dependencies are `"bs-dependencies": ["somelibrary"]` and `somelibrary` contains `Common.re`, this looks up the types of `foo` in the library:
206
+
For example, if the dependencies are `"bs-dependencies": ["somelibrary"]` and `somelibrary` contains `Common.res`, this looks up the types of `foo` in the library:
0 commit comments