Skip to content

Commit 4bf2e0f

Browse files
committed
gentype: add generatedFileExtension docs
1 parent 37009d3 commit 4bf2e0f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pages/docs/gentype/latest/getting-started.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Add a `gentypeconfig` section to your `bsconfig.json` (See [Configuration](#conf
2828
"gentypeconfig": {
2929
"language": "typescript",
3030
"shims": {},
31+
"generatedFileExtension": ".gen.tsx",
3132
"debug": {
3233
"all": false,
3334
"basic": false
@@ -49,14 +50,17 @@ structure:
4950
//...
5051
"gentypeconfig": {
5152
"language": "typescript" | "flow" | "untyped",
53+
"generatedFileExtension": ".gen.tsx",
5254
"shims": {
5355
"ReasonReact": "ReactShim"
5456
}
5557
}
5658
```
5759

58-
- **language**
60+
- **generatedFileExtension**
61+
- File extension used for genType generated files (defaults to `.gen.tsx`)
5962

63+
- **language**
6064
- `"typescript"` : Generate `*.gen.tsx` files written in TypeScript.
6165
- `"flow"`: Generate `*.gen.js` files with Flow type annotations.
6266
- `"untyped"`: Generate `*.gen.js` files in vanilla JavaScript.

0 commit comments

Comments
 (0)