feat: work with hono and typescript

This commit is contained in:
DIYgod
2024-01-21 11:55:18 +08:00
parent cd48da470e
commit 847724cad1
53 changed files with 2744 additions and 1141 deletions

24
lib/types.ts Normal file
View File

@@ -0,0 +1,24 @@
export type DataItem = {
title: string;
description?: string;
pubDate: number | string;
link?: string;
category?: string[];
author?: string;
doi?: string;
_extra?: Record<string, any> & {
links?: {
url: string;
type: string;
content_html?: string;
}[];
};
}
export type Data = {
title: string;
description: string;
link?: string;
item: DataItem[];
allowEmpty?: boolean;
}