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 5a181ee commit 933fb22Copy full SHA for 933fb22
invokeai/frontend/web/src/features/gallery/store/types.ts
@@ -3,8 +3,9 @@ import z from 'zod';
3
4
const zGalleryView = z.enum(['images', 'assets']);
5
export type GalleryView = z.infer<typeof zGalleryView>;
6
-const zBoardId = z.union([z.literal('none'), z.intersection(z.string(), z.record(z.never(), z.never()))]);
7
-export type BoardId = z.infer<typeof zBoardId>;
+const zBoardId = z.string();
+// TS hack to get autocomplete for "none" but accept any string
8
+export type BoardId = 'none' | (string & {});
9
const zComparisonMode = z.enum(['slider', 'side-by-side', 'hover']);
10
export type ComparisonMode = z.infer<typeof zComparisonMode>;
11
const zComparisonFit = z.enum(['contain', 'fill']);
0 commit comments