Page URL:
https://www.typescriptlang.org/docs/handbook/compiler-options.html
https://github.com/microsoft/TypeScript-Website/edit/v2/packages/documentation/copy/en/project-config/Compiler%20Options.md
Issue:
The documentation is confusing regarding when allowSyntheticDefaultImports is true.
The esModuleInterop documentation says enabling it will also enable allowSyntheticDefaultImports. However on this page, the allowSyntheticDefaultImports documentation says that it will be:
true if module is system, or esModuleInterop and module is not es6/es2015 or esnext, false otherwise.
It is not clear for example, what happens by default if esModuleInterop is true and module is es2019.
Recommended Fix:
TBD
Page URL:
https://www.typescriptlang.org/docs/handbook/compiler-options.html
https://github.com/microsoft/TypeScript-Website/edit/v2/packages/documentation/copy/en/project-config/Compiler%20Options.md
Issue:
The documentation is confusing regarding when
allowSyntheticDefaultImportsis true.The
esModuleInteropdocumentation says enabling it will also enableallowSyntheticDefaultImports. However on this page, theallowSyntheticDefaultImportsdocumentation says that it will be:It is not clear for example, what happens by default if
esModuleInteropis true and module ises2019.Recommended Fix:
TBD