You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting a module using export =, TypeScript-specific import module = require("module") must be used to import the module.
Whereas I've been able to import from and import as for modules that export using export =.
The text was updated successfully, but these errors were encountered:
marcospgp
changed the title
Docs are wrong:
Docs are wrong: export = and import = require(), says latter is required but false
Apr 16, 2019
marcospgp
changed the title
Docs are wrong: export = and import = require(), says latter is required but false
Docs are wrong: export = and import = require(), says latter is required but that is false
Apr 16, 2019
marcospgp
changed the title
Docs are wrong: export = and import = require(), says latter is required but that is false
Docs are wrong: export = and import = require(), says latter is required incorrectly
Apr 16, 2019
The documentation regarding
export = and import = require()
at https://www.typescriptlang.org/docs/handbook/modules.html is wrong. It says:Whereas I've been able to
import from
andimport as
for modules that export usingexport =
.The text was updated successfully, but these errors were encountered: