Skip to content
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
@unional

Description

@unional

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions