nkbt / react-height

Component-wrapper to determine and report children elements height
MIT License
180 stars 27 forks source link

TypeScript Types #54

Closed rogerfar closed 3 years ago

rogerfar commented 3 years ago

We only write TS projects nowadays but when using this library I get the error: Could not find a declaration file for module 'react-height'. 'index.js' implicitly has an 'any' type. Trynpm i --save-dev @types/react-heightif it exists or add a new declaration (.d.ts) file containingdeclare module 'react-height';

Is it possible to create a type file?

nkbt commented 3 years ago

Have you tried Try npm i --save-dev @types/react-height?

rogerfar commented 3 years ago

Yes, unfortunately no matches: https://www.npmjs.com/search?q=%40types%2Freact-height

nkbt commented 3 years ago

You can create one then in @types

I am not working with TS and don't plan to anytime soon

rogerfar commented 3 years ago

Ok thanks I'll submit something there.