Created
February 1, 2022 01:06
-
-
Save antoniopresto/1af674259e3f6c52fe1d5dbe8e401e6b 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 userSchema = createSchema({ | |
name: 'string?', | |
age: 'int', | |
gender: ['f', 'm', 'o'], | |
address: { | |
type: 'schema', | |
def: { | |
name: 'string', | |
number: [['float', 'string']], | |
}, | |
}, | |
} as const); | |
type Result = ReturnType<typeof userSchema.parse> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment