Skip to content

Commit

Permalink
refactor: union -> enum
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Nov 18, 2022
1 parent 4ea30e9 commit a801044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/docs/src/content/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineCollection({
title: z.string().default(SITE.title),
description: z.string().default(SITE.description),
lang: z.literal('en-us').default(SITE.defaultLanguage),
dir: z.union([z.literal('ltr'), z.literal('rtl')]).default('ltr'),
dir: z.enum(['ltr', 'rtl']).default('ltr'),
image: z
.object({
src: z.string(),
Expand Down

0 comments on commit a801044

Please sign in to comment.