This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Update Ambient Module section in modules.md #236
Open
Description
This section under Ambient Module
should be removed:
... We could define each module in its own .d.ts file with top-level export declarations, but it’s more convenient to write them as one larger .d.ts file. To do so, we use a construct similar to ambient namespaces, but we use the module keyword and the quoted name of the module which will be available to a later import
This will prohibit renaming at consumption and create conflict when there are two versions of the package is in used.
Related to:
microsoft/TypeScript#7398
See example on how it will fail:
https://github.com/typings/typings/blob/master/docs/external-modules.md