Closed Morriz closed 2 years ago
It would also be really awesome if you could generate indexes so that we can just import like this:
import { UserUpdateInputObjectSchema } from `*/gen/schemas`
I will create a separate issue for that ;)
export const UserUpdateInputObject = ... ... export const UserUpdateInputObjectSchema = Yup.object(UserUpdateInputObject)
This would be really cool if it works and doesn't show any errors. Hopefully it works!
Fixed in 0.1.3
Problem
Hi, all your
objects/*.schema
files contain redundant code. The top definition is always copied to be used in the exportedYup.object({...
.Suggested solution
Just export like this: