]> git.r.bdr.sh - rbdr/forum/blob - src/lib/stores/topics.ts
Update eslint
[rbdr/forum] / src / lib / stores / topics.ts
1 import { store } from './apollo';
2 import { GET_TOPIC } from '$lib/data/queries';
3
4 import type { Topic } from '$lib/data/types';
5
6 export const getTopic = (id: string) =>
7 store<Topic>({ key: 'topic', query: GET_TOPIC, variables: { id } });