install with types Install dependency. Then if could find types from @types, install types. Usage npm install install-with-types npm run install-with-types react Options --save-dev or -D Install dependency into devDependencies.