Skip to content

[question] produce definitions for both commonjs and globals? #7255

Closed
@nippur72

Description

@nippur72

I have a commonjs project that I would like to make it consumable from globals too (after webpacking and publishing it to window).

The problem is, how do I generate the .d.ts definitions for globals? Is that possible without modifying the code? Or do I have to rewrite them "by hand" ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions