-export const getForum = (id: string) => store({ key: 'forum', query: GET_FORUM, variables: { id } });
-export const getForums = () => store({ key: 'forums', query: GET_FORUMS, initialValue: [] });
+import type { Forum } from '$lib/data/types';
+
+export const getForum = (id: string) =>
+ store<Forum>({ key: 'forum', query: GET_FORUM, variables: { id } });
+export const getForums = () =>
+ store<Forum[]>({ key: 'forums', query: GET_FORUMS, initialValue: [] });