Created
March 8, 2020 22:43
-
-
Save colinhacks/5e8f99ab0b90ece7f2a5680bb38a1f39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const schema = yup.object({ | |
asdf: yup.string(), | |
}); | |
schema.validate({}); // passes | |
type SchemaType = yup.InferType<typeof schema>; | |
// returns { asdf: string } | |
// should be { asdf?: string } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment