2 files + 2 − 2 Inline Compare changes Side-by-side Inline Show whitespace changes Files 2 types/Dojo/ExerciseResultsFile.ts +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ const ExerciseResultsFile = z.object({ otherInformations: z.array(z.object({ name : z.string(), description : z.string().optional(), icon : z.enum(Object.keys(Icon) as [ firstKey: string, ...otherKeys: Array<string> ]).optional().transform(value => value ? (Icon as { [index: string]: string })[value] : undefined), icon : z.enum(Object.keys(Icon) as [ firstKey: string, ...otherKeys: Array<string> ]).optional(), itemsOrInformations: z.union([ z.array(z.string()), z.string() ]) })) .optional() Loading types/Icon.ts +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ const Icon = { NULL : '', NONE : '', BADMINTON: '🏸' } as const; } as { [index: string]: string }; export default Icon; No newline at end of file
types/Dojo/ExerciseResultsFile.ts +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ const ExerciseResultsFile = z.object({ otherInformations: z.array(z.object({ name : z.string(), description : z.string().optional(), icon : z.enum(Object.keys(Icon) as [ firstKey: string, ...otherKeys: Array<string> ]).optional().transform(value => value ? (Icon as { [index: string]: string })[value] : undefined), icon : z.enum(Object.keys(Icon) as [ firstKey: string, ...otherKeys: Array<string> ]).optional(), itemsOrInformations: z.union([ z.array(z.string()), z.string() ]) })) .optional() Loading
types/Icon.ts +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ const Icon = { NULL : '', NONE : '', BADMINTON: '🏸' } as const; } as { [index: string]: string }; export default Icon; No newline at end of file