-
Notifications
You must be signed in to change notification settings - Fork 1.1k
export =
also works with import * as
#1278
Comments
It is a bit confusing, because "must" in this case means "really should (but we'll often fix your mistake if you do it wrong)". The code So if your module target is CommonJS, TypeScript will fix it for you, as if you wrote Not that in the section below it, you can see what will be generated by the TypeScript compiler, depending on the module target (https://www.typescriptlang.org/docs/handbook/modules.html#code-generation-for-modules). |
https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require
I'm confused about this statement, because
import * as module from 'module'
also works, right?/cc @DanielRosenwasser
The text was updated successfully, but these errors were encountered: