import { store } from './apollo';
import { GET_TOPIC } from '$lib/data/queries';
+import type { Topic } from '$lib/data/types';
+
export const getTopic = (id: string) =>
- store({ key: 'topic', query: GET_TOPIC, variables: { id } });
+ store<Topic>({ key: 'topic', query: GET_TOPIC, variables: { id } });