jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.97k stars 2.79k forks source link

Validation library that works with Formik, which also is written in TypeScript #2293

Open ORESoftware opened 4 years ago

ORESoftware commented 4 years ago

https://github.com/jquense/yup/issues/778

Right now we pairing formik with Yup. However Yup is not written in TS and we want to use libraries written in TS for our front-end. Is there a recommended library to plug into Formik which is written in TS?

jamesmosier commented 4 years ago

Wouldn't https://www.npmjs.com/package/@types/yup suffice if you wanted the typings? Or is there some advantage I'm not aware of for a 3rd party codebase that is written in typescript?

banarualexandru commented 4 years ago

Hi all You can try fluentvalidation-ts I'm using it with typescript and it's working ok. You can use it like this: <Formik ... validate={new MyValidator().validate} ... Good luck