We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a36b77 commit a107fb5Copy full SHA for a107fb5
1 file changed
packages/exd/src/schema/saintcoinach/interface.ts
@@ -5,7 +5,7 @@ const DataBase = z.object({
5
})
6
7
export const SingleData = DataBase.extend({
8
- type: z.literal(undefined),
+ type: z.undefined().optional(),
9
name: z.string(),
10
converter: z.any().optional(),
11
@@ -23,11 +23,7 @@ export const RepeatData = DataBase.extend({
23
definition: z.unknown(),
24
25
26
-export const Data = z.discriminatedUnion('type', [
27
- SingleData,
28
- GroupData,
29
- RepeatData,
30
-])
+export const Data = z.union([SingleData, GroupData, RepeatData])
31
32
export const DefinitionSchema = z.object({
33
sheet: z.string(),
0 commit comments