Skip to content

Commit ca2d202

Browse files
bye zod
1 parent ac8fa7d commit ca2d202

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

bun.lockb

-32 Bytes
Binary file not shown.

lib/validations/og.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import * as z from 'zod'
2-
3-
export const ogImageSchema = z.object({
4-
heading: z.string(),
5-
type: z.string(),
6-
mode: z.enum(['light', 'dark']).optional().default('dark'),
7-
})
8-
9-
export type OgImageSchema = z.infer<typeof ogImageSchema>
1+
export type OgImageSchema = {
2+
heading: string
3+
type: string
4+
mode: 'light' | 'dark'
5+
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@
6767
"tailwind-merge": "^2.6.0",
6868
"tailwindcss": "^3.4.14",
6969
"tailwindcss-animate": "^1.0.7",
70-
"unist-util-visit": "^5.0.0",
71-
"zod": "^3.24.1"
70+
"unist-util-visit": "^5.0.0"
7271
},
7372
"devDependencies": {
7473
"@eslint/eslintrc": "^3.2.0",

0 commit comments

Comments
 (0)