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