[fix] reorganize the typing files

This commit is contained in:
PrinOrange
2024-09-26 16:48:47 +08:00
parent 7e7b86c1e5
commit f00a79fcf3
19 changed files with 49 additions and 50 deletions

23
types/docs.type.ts Normal file
View File

@@ -0,0 +1,23 @@
import type { TPostFrontmatter } from "./frontmatter.type";
export type TPostListItem = {
id: string;
frontMatter: TPostFrontmatter;
};
export type TPostsByTag = {
[tagName: string]: TPostListItem[];
};
export type TSearchResultItem = {
id: string;
title: string;
summary: string | null;
tags: string[] | null;
};
export type TTOCItem = {
level: number;
title: string;
anchorId: string;
};