We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78dfaa6 commit 1823ab2Copy full SHA for 1823ab2
packages/api/src/models/icon.ts
@@ -11,7 +11,15 @@ export enum IconEnum {
11
Base64PNG = "base64-png",
12
Text = "text"
13
}
14
-export const IconType = v.enum_(IconEnum)
+// export const IconType = v.enum(IconEnum)
15
+export const IconType = v.union([
16
+ v.literal(IconEnum.Iconify),
17
+ v.literal(IconEnum.RemoteUrl),
18
+ v.literal(IconEnum.Svg),
19
+ v.literal(IconEnum.Base64PNG),
20
+ v.literal(IconEnum.Text)
21
+])
22
+
23
export type IconType = v.InferOutput<typeof IconType>
24
25
export type Icon = {
0 commit comments