'Ignore Typescript errors in submodule

I have created a Typescript React project using create-react-app. I have also added a library via submodule. However, Typescript keeps reporting error on the submodule in src/submodule/xxx. Is there any way I can have Typescript ignore the submodule library totally?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source