diff --git a/readme.md b/readme.md index 2ac2a3b..7d503ec 100644 --- a/readme.md +++ b/readme.md @@ -81,19 +81,13 @@ import { Compile } from '@sinclair/typemap' import z from 'zod' -const T = z.object({ // const T: z.ZodObject<{ - x: z.number(), // x: z.ZodNumber, - y: z.number(), // y: z.ZodNumber, - z: z.number(), // z: z.ZodNumber, -}) // }> - -const C = Compile(T) // const C: Validator> - -const R = C.Check({ // const R: boolean - High Performance Checking! +const T = Compile(z.object({ // const T: Validator> + +const R = T.Check({ // High Performance Check x: 1, y: 2, z: 3