aboutsummaryrefslogtreecommitdiffstats
path: root/packages/service-shared/src/schemas.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/service-shared/src/schemas.ts')
-rw-r--r--packages/service-shared/src/schemas.ts18
1 files changed, 10 insertions, 8 deletions
diff --git a/packages/service-shared/src/schemas.ts b/packages/service-shared/src/schemas.ts
index 0b31eb7..bb1926f 100644
--- a/packages/service-shared/src/schemas.ts
+++ b/packages/service-shared/src/schemas.ts
@@ -20,10 +20,11 @@
20 20
21import { z } from 'zod'; 21import { z } from 'zod';
22 22
23export const UnreadCount = z.object({ 23export const UnreadCount = /* @__PURE__ */ (() =>
24 direct: z.number().nonnegative().optional(), 24 z.object({
25 indirect: z.number().nonnegative().optional(), 25 direct: z.number().nonnegative().optional(),
26}); 26 indirect: z.number().nonnegative().optional(),
27 }))();
27 28
28/* 29/*
29 eslint-disable-next-line @typescript-eslint/no-redeclare -- 30 eslint-disable-next-line @typescript-eslint/no-redeclare --
@@ -31,10 +32,11 @@ export const UnreadCount = z.object({
31*/ 32*/
32export type UnreadCount = z.infer<typeof UnreadCount>; 33export type UnreadCount = z.infer<typeof UnreadCount>;
33 34
34export const WebSource = z.object({ 35export const WebSource = /* @__PURE__ */ (() =>
35 code: z.string(), 36 z.object({
36 url: z.string().nonempty(), 37 code: z.string(),
37}); 38 url: z.string().nonempty(),
39 }))();
38 40
39/* 41/*
40 eslint-disable-next-line @typescript-eslint/no-redeclare -- 42 eslint-disable-next-line @typescript-eslint/no-redeclare --