]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/stores/posts.ts
Start migration to supabase
[rbdr/forum] / src / lib / stores / posts.ts
index 0d3dec305c9356cae33cba2a802cb8030ac0dbb3..718e1e581cb19c408024783274e7999f10a5948f 100644 (file)
@@ -1,4 +1,7 @@
 import { store } from './apollo';
 import { GET_POST } from '$lib/data/queries';
 
 import { store } from './apollo';
 import { GET_POST } from '$lib/data/queries';
 
-export const getPost = (id: string) => store({ key: 'post', query: GET_POST, variables: { id } });
+import type { Post } from '$lib/data/types';
+
+export const getPost = (id: string) =>
+       store<Post>({ key: 'post', query: GET_POST, variables: { id } });