From 3371dd54123b901b55aa728bfe564c7d9517dfc6 Mon Sep 17 00:00:00 2001 From: "Eivind M. Skretting" Date: Wed, 10 Apr 2024 10:02:48 +0200 Subject: [PATCH] Fix README.md typo There were two identical typos: `z.coerse`->`z.coerce` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06fe342..f378193 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ import { typeEnvironment } from '@arundo/typed-env'; export const envSchema = z.object({ NODE_ENV: z.enum(['test', 'development', 'production']), - PORT: z.coerse.number().int().default(3000), + PORT: z.coerce.number().int().default(3000), }); export const environment = typeEnvironment(envSchema); @@ -69,7 +69,7 @@ import { z } from 'zod'; import { typeEnvironment } from '@arundo/typed-env'; export const envSchema = z.object({ - PORT: z.coerse.number().int().default(3000), + PORT: z.coerce.number().int().default(3000), }); export const environment = typeEnvironment(envSchema, { transform: 'camelcase' });