-
Notifications
You must be signed in to change notification settings - Fork 452
Closed as not planned
Description
It would reduce the size of the generated content if empty interfaces were transformed into type aliases, like this:
https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/246360bbfcc64d3d28a772d77edfbdc69cb22747/baselines/dom.generated.d.ts#L1634
To:
type RTCAnswerOptions = RTCOfferAnswerOptions;
We can update the emitter to do this.
This might also slightly reduce the size of the shipped lib.dom.d.ts file in the main TypeScript repo, since type aliases are shorter to declare than empty interfaces. It’s probably a small saving, but still a nice cleanup.
I can work on this
Metadata
Metadata
Assignees
Labels
No labels