22 lines
338 B
TypeScript
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[];
|