From 07b9890488b8278cf5cfa9a430f6ad0eebe38522 Mon Sep 17 00:00:00 2001 From: Nick Sinclair Date: Thu, 30 Jan 2025 01:44:20 +1300 Subject: [PATCH] Documentation (#16) - Fix Typo --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 25a7ceb..e40fa8a 100644 --- a/readme.md +++ b/readme.md @@ -160,10 +160,10 @@ Use the `TypeBox` function to translate types and syntax into TypeBox types. ```typescript import { TypeBox } from '@sinclair/typemap' -const S = type('string[]') // const S: TArray (Syntax) -const T = type(t.Number()) // const T: TNumber (TypeBox) -const V = type(v.string()) // const V: TString (Valibot) -const Z = type(z.boolean()) // const Z: TBoolean (Zod) +const S = TypeBox('string[]') // const S: TArray (Syntax) +const T = TypeBox(t.Number()) // const T: TNumber (TypeBox) +const V = TypeBox(v.string()) // const V: TString (Valibot) +const Z = TypeBox(z.boolean()) // const Z: TBoolean (Zod) ```