]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/stores/topics.ts
Start migration to supabase
[rbdr/forum] / src / lib / stores / topics.ts
index 8d69d801341d7ba2da5d4e642b7901a27038f3d5..0e39769cb78ddfa2f4245c9740397f150066a3a4 100644 (file)
@@ -1,5 +1,7 @@
 import { store } from './apollo';
 import { GET_TOPIC } from '$lib/data/queries';
 
+import type { Topic } from '$lib/data/types';
+
 export const getTopic = (id: string) =>
-       store({ key: 'topic', query: GET_TOPIC, variables: { id } });
+       store<Topic>({ key: 'topic', query: GET_TOPIC, variables: { id } });