react-mock icon indicating copy to clipboard operation
react-mock copied to clipboard

Typescript bindings not available

Open mcalthrop opened this issue 6 years ago • 1 comments

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?

mcalthrop avatar Oct 30 '19 22:10 mcalthrop

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

lxm7 avatar Aug 24 '20 17:08 lxm7