]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/stores/tags.ts
Use tailwind, reference types
[rbdr/forum] / src / lib / stores / tags.ts
index 79f017e5108dbebf91dac1443215b50c559aaf37..c96da2d0a8c92f7c042968c01716b8f89229618f 100644 (file)
@@ -1,4 +1,6 @@
 import { store } from './apollo';
 import { GET_TAG } from '$lib/data/queries';
 
-export const getTag = (id: string) => store({ key: 'tag', query: GET_TAG, variables: { id } });
+import type { Tag } from '$lib/data/types';
+
+export const getTag = (id: string) => store<Tag>({ key: 'tag', query: GET_TAG, variables: { id } });