TypeScript
TypeScript copied to clipboard
6.0 Deprecation Candidates
- Change the default
rootDirto the location of the tsconfig.json (i.e."."). This can be safely transitioned by having a warning at 6.0 if therootDirwe would have inferred doesn't match ".".
This is a tracking issue, so I'm locking this since I don't want a flood of "You should deprecate X" comments here. Post on the relevant thread for X instead, and if it seems like a possible fit for deprecation, we'll cross-link here.
Module stuff:
- Deprecate conditional imports/exports fallback lookups
- Deprecate
--moduleResolution classic- Change default
moduleResolutionfor--module es2015et al.
- Change default
- Deprecate
--moduleResolution node/node10- Change default
moduleResolutionfor--module commonjs
- Change default
- Deprecate
allowSyntheticDefaultExportsandesModuleInterop(make the latter always true)
We've talked quite a bit about moving strictNullChecks and noImplicitAny to being on by default. In order to transition our userbase, would it make sense to require them to either
- set to
trueeither explicitly or implicitly (i.e. via--strict) or - explicitly be set to
false?
tsc foo.ts not applying tsconfig.json - See #57159 and many others
no-default-lib
amd-module
Mix tsconfig.json with extra files #27379
May be default types should be [] verses undefined
#58453 error on asserts in import statements
Multi-file global value namespaces
--rootDirs? https://www.typescriptlang.org/tsconfig/#rootDirs
Import assertions should start erroring (saying to use import attributes instead) in --module esnext and --module preserve. They will already error in --module nodenext when #60534 is done.
I forgot to include --baseUrl earlier
module Foo { (synonym of namespace Foo {), see #61450 for RWC results