jquense / yup

Dead simple Object schema validation
MIT License
22.93k stars 934 forks source link

The ISchema interface is missing declarations for isValid and isValidSync. #2182

Open oarodrig opened 8 months ago

oarodrig commented 8 months ago

Describe the bug The ISchema interface is missing the isValid and isValidSync methods. This makes functions like reach harder to use, as those methods can't be called on the resulting ISchema. I think it makes sense for both of those methods to be present on the interface.

To Reproduce

See https://codesandbox.io/p/sandbox/zealous-bird-wvyxzt?file=%2Fsrc%2Findex.test.ts

Expected behavior isValid and isValidSync are available for use from the ISchema interface.

Platform (please complete the following information):