gerhat / material-ui-formik-components

Formik ready material ui components
MIT License
85 stars 13 forks source link

Typescript Support? #1

Closed glowkeeper closed 5 years ago

glowkeeper commented 5 years ago

Any chance you could add Typescript support? My Typescript loader complains:

TS7016: Could not find a declaration file for module 'material-ui-formik-components'. '/./node_modules/material-ui-formik-components/dist/index.js' implicitly has an 'any' type. Try npm install @types/material-ui-formik-components if it exists or add a new declaration (.d.ts) file containing declare module 'material-ui-formik-components';

I've been struggling to make Select work, so I'm loving the module - thanks!

gerhat commented 5 years ago

@glowkeeper thanks for pointing it out. Will add the definitions asap

glowkeeper commented 5 years ago

@gerhat - thanks! I don't know if this helps, but formik-material-ui has typescript support...mind you, I can't get the Select stuff there working, whereas yours works straight out of the box...

gerhat commented 5 years ago

@glowkeeper - can you please try version 0.1.3 and let me know if it fixes the TS loader issue? thanks

glowkeeper commented 5 years ago

@gerhat - yup - seems to work nicely, Thanks!