Files
blog/src/types/archive.ts
2026-07-22 00:22:25 +08:00

22 lines
338 B
TypeScript

type ArchiveYear = {
year: number;
total: number;
list: ArchiveMonth[];
};
type ArchivePost = {
id: number;
slug: string;
title: string;
published_at: string;
published_at_display: string;
category_name: string;
};
type ArchiveMonth = {
month: number;
list: ArchivePost[];
};
export type Archive = ArchiveYear[];