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 } });