From 47f2c89f3912d6dc2d00e8793dbd9f8eb0a028a9 Mon Sep 17 00:00:00 2001 From: sinclair Date: Sun, 26 Jan 2025 07:14:18 +0900 Subject: [PATCH] Revision 0.8.0 --- readme.md | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) 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