Files
lixiyu-net/types/docs.type.ts
2024-09-28 22:13:37 +08:00

37 lines
700 B
TypeScript

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 TPostTOCItem = {
level: number;
title: string;
anchorId: string;
};
export type TPostFrontmatter = {
title: string;
time: string;
tags: string[] | null;
subtitle: string | null;
summary: string | null;
coverURL: string | null;
pin: boolean | null;
noPrompt: boolean | null;
allowShare: boolean | null;
closed: boolean | null;
};
export type TTagListItem = { name: string; count: number };