You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using React with TypeScript (TSX) requires type definitions for node modules. Are there plans to release TypeScript definition (*.d.ts) for this module?
Activity
jberube commentedon Mar 19, 2018
Would you accept a PR if I provide one to include the *.d.ts file in this project?
pbirsinger commentedon Mar 5, 2019
Get us out of the stone ages here!
sodle commentedon May 27, 2019
Here's a quick and dirty set of typedefs. Enough to make VSCode stop screaming about missing types, at least.
https://gist.github.com/sodle/1173508af207a6bc277e8f3102f823de
emasys commentedon Jan 23, 2020
An easy fix for a CRA project using @sodle's solution.
create a .d.ts file, then add typings below into it and restart your server.