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/manual/latest/typescript-integration.mdx
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,42 @@ import { printColorMessage } from "./Color.gen.tsx";
85
85
printColorMessage("Red", "Hello, genType!");
86
86
```
87
87
88
+
## Exporting an entire module
89
+
90
+
_Since ReScript `11.0.0`_ modules can be annotated with `@genType` as well. In that case, all types and values of the module will be converted to TS types. Example:
0 commit comments