question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yup validation dependency has no typings

See original GitHub issue

Formik is written in TS (great), but your only validation option is yup, which has no typings in the main repo and there is no externally provided @types/yup package either.

Makes it difficult to try and adopt Formik while staying purely TS.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Andreycocommented, Jul 30, 2017

Awesome! Nothing stopping me from using Formik at all!

1reaction
jaredpalmercommented, Jul 30, 2017

Since 0.8, validationSchema is optional. You can now use the validate option for custom async and sync validation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add TypeScript types · Issue #91 · jquense/yup - GitHub
I don't use typescript very often so i'd be hard to keep any type defs up ... Yup validation dependency has no typings...
Read more >
Optional field validation in Yup schema - Stack Overflow
Its working fine, you have condition if the field is left empty then it will not validate, else it will validate because field...
Read more >
Yup - npm
Yup is a JavaScript schema builder for value parsing and validation. Define a schema, transform a value to match, validate the shape of...
Read more >
Yup validation and TypeScript (and Formik) - Medium
Yup is a pretty nice way to validate your business objects against a predefined schema. And if you are using Formik using Yup...
Read more >
Validation | BlueLibs
This package blends yup validation package with class decorators inside ... design something that checks whether a field is unique or not in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found