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

fix: export PostData as type-only from posts.data

This commit is contained in:
2025-12-12 21:59:03 +08:00
parent 8303a9029b
commit 26a9fc9d50

View File

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