TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Reduce the use of `overrideType`
overrideType is intended to be the last resort, but the existing uses confuse people and incorrectly guide them to use it when it's not the ideal way. See also https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1196
Could add a danger rule on PRs which just change the JSON, the hard bit from my side is knowing what to recommend?
It's always better to override the other fields, if possible:
https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/315f15aee7a2d5c6d830ea90872fbd4e51fbbbd2/src/build/types.d.ts#L2-L4