We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1aa086e + e1b66cb commit 5f78aa6Copy full SHA for 5f78aa6
docs/typescript.md
@@ -16,10 +16,20 @@ in **package.json**
16
- Set [`"module": "ESNext"`](https://www.typescriptlang.org/tsconfig/#module)
17
in **tsconfig.json**.
18
19
-Using TypeScript compiler is the most straightforward way.
+Using TypeScript compiler is the most straightforward way, but native TS support from runtimes is gradually increasing.
20
21
::: code-group
22
23
+```bash [node]
24
+# Since Node.js v22.6.0
25
+node --experimental-strip-types script.js
26
+```
27
+
28
+```bash [npx]
29
30
+NODE_OPTIONS="--experimental-strip-types" zx script.js
31
32
33
```bash [tsc]
34
npm install typescript
35
0 commit comments