Skip to content

Commit da44725

Browse files
authored
docs: update type stripping default versions
Signed-off-by: Hyunbin Seo <47051820+hyunbinseo@users.noreply.github.com>
1 parent 63a013f commit da44725

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/site/pages/en/learn/typescript/run-natively.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors: AugustinMauroy, khaosdoctor, jakebailey, robpalme
66

77
# Running TypeScript Natively
88

9-
Since v23.6.0, Node.js enables "type stripping" by default. If you are using v23.6.0 or later and your source code contains only [erasable typescript syntax](https://devblogs.microsoft.com/typescript/announcing-typescript-5-8-beta/#the---erasablesyntaxonly-option), you do not need this article.
9+
Since v22.18.0 and v23.6.0, Node.js enables "type stripping" by default. If you are using v22.18.0, v23.6.0 or later and your source code contains only [erasable typescript syntax](https://devblogs.microsoft.com/typescript/announcing-typescript-5-8-beta/#the---erasablesyntaxonly-option), you do not need this article.
1010

1111
## Running TypeScript code with Node.js
1212

@@ -26,7 +26,7 @@ In V22.7.0 this experimental support was extended to transform TypeScript-only s
2626
node --experimental-transform-types another-example.ts
2727
```
2828

29-
From v23.6.0 onwards, type stripping is enabled by default (you can disable it via [`--no-experimental-strip-types`](https://nodejs.org/docs/latest-v23.x/api/cli.html#--no-experimental-strip-types)), enabling you to run any supported syntax, so running files like the one below with `node file.ts` is supported:
29+
From v22.18.0, v23.6.0 onwards, type stripping is enabled by default (you can disable it via [`--no-experimental-strip-types`](https://nodejs.org/docs/latest-v23.x/api/cli.html#--no-experimental-strip-types)), enabling you to run any supported syntax, so running files like the one below with `node file.ts` is supported:
3030

3131
```ts
3232
function foo(bar: number): string {

0 commit comments

Comments
 (0)