aboutsummaryrefslogtreecommitdiffstats
path: root/packages/service-shared/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/service-shared/src')
-rw-r--r--packages/service-shared/src/index.ts2
-rw-r--r--packages/service-shared/src/schemas.ts7
2 files changed, 9 insertions, 0 deletions
diff --git a/packages/service-shared/src/index.ts b/packages/service-shared/src/index.ts
index c517959..564ebe8 100644
--- a/packages/service-shared/src/index.ts
+++ b/packages/service-shared/src/index.ts
@@ -22,7 +22,9 @@ export { ServiceToMainIpcMessage } from './ipc';
22 22
23export type { 23export type {
24 UnreadCount, 24 UnreadCount,
25 WebSource,
25} from './schemas'; 26} from './schemas';
26export { 27export {
27 unreadCount, 28 unreadCount,
29 webSource,
28} from './schemas'; 30} from './schemas';
diff --git a/packages/service-shared/src/schemas.ts b/packages/service-shared/src/schemas.ts
index 1513e43..586750c 100644
--- a/packages/service-shared/src/schemas.ts
+++ b/packages/service-shared/src/schemas.ts
@@ -26,3 +26,10 @@ export const unreadCount = z.object({
26}); 26});
27 27
28export type UnreadCount = z.infer<typeof unreadCount>; 28export type UnreadCount = z.infer<typeof unreadCount>;
29
30export const webSource = z.object({
31 code: z.string(),
32 url: z.string().nonempty(),
33});
34
35export type WebSource = z.infer<typeof webSource>;