]> git.r.bdr.sh - rbdr/forum/blob - src/lib/stores/posts.ts
Adjust formatting of jest
[rbdr/forum] / src / lib / stores / posts.ts
1 import { store } from './apollo';
2 import { GET_POST } from '$lib/data/queries';
3
4 import type { Post } from '$lib/data/types';
5
6 export const getPost = (id: string) =>
7 store<Post>({ key: 'post', query: GET_POST, variables: { id } });