unjs / knitwork

🧶 Utilities to generate safe JavaScript code.
MIT License
263 stars 10 forks source link

Support `declare <namespace>` #81

Open BjornTheProgrammer opened 8 months ago

BjornTheProgrammer commented 8 months ago

Describe the feature

Support generating the following syntax:

declare <namespace> {
    <augmentations>
}

Primarily for

declare global {}

Additional information

danielroe commented 8 months ago

This would be great :+1: