Skip to content

Commit

Permalink
Fix README.md typo
Browse files Browse the repository at this point in the history
There were two identical typos: `z.coerse`->`z.coerce`
  • Loading branch information
ludovico authored Apr 10, 2024
1 parent fddbf92 commit 3371dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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' });
Expand Down

0 comments on commit 3371dd5

Please sign in to comment.