TypeScript-Handbook icon indicating copy to clipboard operation
TypeScript-Handbook copied to clipboard

Update docs to reflect `--allowSyntheticDefaultImports`

Open ghost opened this issue 8 years ago • 0 comments

From https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require:

When importing a module using export =, TypeScript-specific import module = require("module") must be used to import the module.

The must is not always true -- one can use a default import given the right settings.

ghost avatar Dec 19 '17 15:12 ghost