Skip to content

Commit

Permalink
chore: tweak filter-sphere schema
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Aug 9, 2024
1 parent 1107ae1 commit a6fad47
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/filter-sphere.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,24 @@ import {
} from "./ui/select";

export const schema = z.object({
path: z.string().describe("Path"),
type: z
.union([
z.literal("YDoc"),
z.literal("YText"),
z.literal("YMap"),
z.literal("YArray"),
z.literal("YText"),
z.literal("YXmlElement"),
z.literal("YXmlFragment"),
z.literal("YAbstractType"),
z.literal("YDoc"),
z.literal("Object"),
z.literal("Boolean"),
z.literal("String"),
z.literal("Number"),
z.literal("Uint8Array"),
])
.describe("Type"),
key: z.string().describe("Key"),
path: z.string().describe("Path"),
value: z.unknown(),
});

Expand Down

0 comments on commit a6fad47

Please sign in to comment.