1
0
mirror of https://github.com/sendevia/website.git synced 2026-03-06 07:40:50 +08:00

fix: export PostData type from posts store

This commit is contained in:
2025-12-12 21:54:50 +08:00
parent 6c2e9741fc
commit 8303a9029b

View File

@@ -2,6 +2,8 @@ import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { data as postsData, type PostData } from "./posts.data";
export { PostData } from "./posts.data";
export const usePostStore = defineStore("posts", () => {
const posts = ref<PostData[]>(postsData);