Microsoftは2026年3月23日、TypeScriptのメジャーバージョンアップとなるTypeScript 6.
TypeScript 6.
— TypeScript (@typescript) March 23, 20260 is now available!
This release brings better type-checking for methods, new standard library features, new module features for Node.js, and more!
But most important, this release brings us one step closer to the upcoming native-speed 7.0!https:// t. co/ hon0RU1L5B
TypeScript 6.
そして最も大きな特徴が、今後数ヵ月以内に公開が予定されており大幅な高速化と仕様変更が見込まれるTypeScript 7.
- strictモードがデフォルトで有効に
- デフォルトモジュールがesnextに
- ターゲットのデフォルトがES2025
(RegExp. escapeが利用可能) に noUncheckedSideEffectImportsがデフォルトでtrueにlibReplacementがデフォルトでfalseにrootDirのデフォルトが“.” に typesのデフォルト値が[](空の配列) に
また、以下のような多くのオプションが
- target: es5
- --downlevelIteration
- --moduleResolution node
(別名: --moduleResolution node10) - moduleのamd、umdおよびsystemjsの値
- --baseUrl
- --moduleResolution classic
- --esModuleInterop false 、--allowSyntheticDefaultImports false
- --alwaysStrict false
- outFile
- 名前空間のレガシーmodule構文
- importのassertsキーワード
- no-default-libディレクティブ
これらの非推奨オプションはtsconfig.ignoreDeprecations: "6.と設定すればいずれも引き続き動作するが、TypeScript 7.
TypeScript 6.