Type definitions for JavaScript libraries <p>I tried to convert a simple React project from JavaScript to TypeScript, but somehow this doesn't seem to work.</p> <p>First VSCode shows me sometimes that <code>react</code> isn't a module, even if I installed it with typings and added the <code>typings/index.d.ts</code> to the <code>tsconfig.json</code> <code>files</code> list. When I restart VSCode it works after opening a few files, but it never seems to work right away.</p> <p>Then I use <code>history</code> and typings also found a history type definition and installed it, but when I try to import <code>history/lib/createBrowserHistory</code> TypeScript doesn't know anything about it and talks about missing modules again.</p>