Skip to content

Commit 87e061d

Browse files
committed
reset ts page
1 parent e5f0c36 commit 87e061d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

markdown-pages/docs/manual/typescript-integration.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,19 @@ export type inputFocusEvent = React.FocusEvent<HTMLInputElement>;
264264

265265
More complete example shims can be found [here](https://github.com/rescript-lang/rescript-compiler/blob/master/jscomp/gentype_tests/typescript-react-example/src/shims/).
266266

267+
## Deprecated features
268+
269+
Features related to generating runtimes were deprecated since v11 and should no longer be used.
270+
271+
- **`@genType("alias")`** and **`@genType.as("alias")`**
272+
- **`@genType.opaque`**
273+
- **`@genType.import`**
274+
- TypeScript Shims
275+
276+
genType does not generate anything runtime-related, and in the near future it generates definition files (`*.d.ts`) directly (See the [roadmap](https://github.com/rescript-lang/rescript-compiler/issues/6196)).
277+
278+
If any runtime code is required for interoperability with JavaScript / TypeScript projects, it can be written by hand, or request a relevant features (e.g. `@deriving`) to the compiler.
279+
267280
## Limitations
268281

269282
- **in-source = true**. Currently only supports ReScript projects with [in-source generation](./build-configuration.mdx#package-specs) and file suffixes that end on `.js`, like `.res.js` or `.bs.js`.

0 commit comments

Comments
 (0)