microsoft / TypeScript-New-Handbook

Incubation repository for the new TypeScript handbook 🐣
MIT License
649 stars 27 forks source link

Information on Modules #16

Open gcrev93 opened 5 years ago

gcrev93 commented 5 years ago

Will we be adding information on importing/exporting modules and etc?

The current Handbook in the TypeScript has a Modules page that is very helpful, so just wanted to inquire.

David-Else commented 4 years ago

https://github.com/microsoft/TypeScript/issues/33306

Oh interesting. Using .js imports does fix it.

This appears to be undocumented?

The closest the documentation says is

To accomplish this, TypeScript overlays the TypeScript source file extensions (.ts, .tsx, and .d.ts) over Node’s resolution logic.