I have a JavaScript library with types installed from npm/@types.
There are two specific fixes I need to make to the @types package that only apply to my application, so merging them into DefinitelyTyped is not an option.
Here's what I need to do:
Remove one field from an interface. For example:
// Before changes: interface A { a?: string; b?: string; c?: string; } // After changes: interface A { a?: string; c?: string; }
Add more types to a field in an interface. For example:
// Before changes: interface B { a?: C; } // After changes: interface B { a?: C | D; }
I still want to download the main @types definitions from an external repository. What is the best way to achieve this?