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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user