Currently, I am faced with an issue regarding a third-party JavaScript library that includes an index.d.ts file. Unfortunately, this file is not compatible with my TypeScript version. After coming up with a fix that works for me, I have submitted it to the creator of the library. In the meantime, I would like to implement this fix for my entire team to benefit from. The challenge lies in committing this fix to VCS, as the node_modules folder is not included in the VCS and its content is installed upon checkout. Therefore, directly overwriting or removing the file provided by the third party is not an option.
I am seeking guidance on where to place my custom .d.ts file and how to instruct TypeScript to prioritize its usage over the supplied one. Any assistance would be greatly appreciated.