aboutsummaryrefslogtreecommitdiff
path: root/src/lib/stores/posts.ts
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 15:01:50 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 15:01:50 +0200
commitbe1ce532b26aea4e3e2258da78849bd245f7f78b (patch)
tree3df092d028c76270bcd2236e3be0ef7dfb73828f /src/lib/stores/posts.ts
parentd197e31bf0437889f792e013df32b868fffc35d9 (diff)
Use tailwind, reference types
Diffstat (limited to 'src/lib/stores/posts.ts')
-rw-r--r--src/lib/stores/posts.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/stores/posts.ts b/src/lib/stores/posts.ts
index 0d3dec3..718e1e5 100644
--- a/src/lib/stores/posts.ts
+++ b/src/lib/stores/posts.ts
@@ -1,4 +1,7 @@
import { store } from './apollo';
import { GET_POST } from '$lib/data/queries';
-export const getPost = (id: string) => store({ key: 'post', query: GET_POST, variables: { id } });
+import type { Post } from '$lib/data/types';
+
+export const getPost = (id: string) =>
+ store<Post>({ key: 'post', query: GET_POST, variables: { id } });