≪ Today I learned. RSS購読
公開日
タグ
Node.js, TypeScript
著者
ダーシノ(@bc_rikko)

Node.js v22.7.0でTypeScriptのシンタックスをサポート

Node.js v22.7.0--experimental-transform-typesが追加されたことで、v22.6.0ではサポートされなかったenumsnamespaceといったTypeScriptの構文がJavaScriptに変換されるようになった。

Experimental transform types support

With the new flag —experimental-transform-types it is possible to enable the transformation of TypeScript-only syntax into JavaScript code.

This feature allows Node.js to support TypeScript syntax such as Enum and namespace.

関連記事