Skip to content

Commit

Permalink
fix: make color zod schema type to be nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
zafercuz committed Mar 22, 2024
1 parent d8a7236 commit e6a112e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/types/IconManagerType.ts
@@ -1,14 +1,16 @@
import { z } from 'zod'

export const iconManagerColorSchema = z.object({
hex: z.string(),
rgba: z.object({
r: z.number(),
g: z.number(),
b: z.number(),
a: z.number(),
}),
})
export const iconManagerColorSchema = z
.object({
hex: z.string(),
rgba: z.object({
r: z.number(),
g: z.number(),
b: z.number(),
a: z.number(),
}),
})
.nullable()

export type IconManagerColor = z.infer<typeof iconManagerColorSchema>

Expand Down

0 comments on commit e6a112e

Please sign in to comment.