Skip to content

Why do you have to export something in a declaration file to define things in the global scope? #3410

@adriancuadrado

Description

@adriancuadrado

Page URL: https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-modifying-module-d-ts.html

Issue: The example given has a comment that says this:

If your module exports nothing, you'll need this line. Otherwise, delete it

However, it doesn't explain why. If it is explained anywhere, it would be nice to include a link to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions