adriantoine / enzyme-to-json

Snapshot test your Enzyme wrappers
MIT License
947 stars 64 forks source link

Add ts types #118

Closed clinyong closed 6 years ago

clinyong commented 6 years ago

The index.d.ts needs these types, or ts compiler will report

[ts] Cannot find type definition file for 'cheerio'.
[ts] Cannot find type definition file for 'enzyme'.
adriantoine commented 6 years ago

Hi @clinyong, I think you can simply install those type definitions in your project and you should have them already if you are using Enzyme. I don't want to include those dependencies in the project because it means people not using Typescript would install them as well and they probably don't want to.