TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

feat: Use `declare class` for namespaced types

Open ExE-Boss opened this issue 4 years ago • 1 comments

Unlike https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/858, which failed because classes declared in the global scope exist only on the global Declarative Environment Record, classes exported from TypeScript’s namespace construct exist as own properties of the namespace object, which matches the WebIDL behaviour.

To consider:

Depends on:

ExE-Boss avatar Dec 11 '20 19:12 ExE-Boss

This doesn't address https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/858#issuecomment-644294982, does it? That should be the first step in this process.

sandersn avatar Feb 23 '21 17:02 sandersn