ovidiuch / react-mock

Declarative mocks for React state and global APIs
MIT License
368 stars 8 forks source link

Typescript bindings not available #25

Open mcalthrop opened 4 years ago

mcalthrop commented 4 years ago

Hi. Love the look of this project, and I'd really like to use it on a React app I'm working on with Typescript.

However, I get the following error when I run the tests:

error TS7016: Could not find a declaration file for module '@react-mock/xhr'

I'm not familiar with writing TS bindings... any hints on what would need to be done?

lxm7 commented 4 years ago

create a file ending in *.d.ts and add declare module '@react-mock/xhr';