Guard function to determine if value is parseable according to schema
tg_Zod( z.object({ prop1: z.string(), prop2: z.number().int(), },{ prop1: 'i am a string', prop2: 2, } ) => true Copy
tg_Zod( z.object({ prop1: z.string(), prop2: z.number().int(), },{ prop1: 'i am a string', prop2: 2, } ) => true
Guard function to determine if value is parseable according to schema