mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +08:00
feat: work with hono and typescript
This commit is contained in:
24
lib/types.ts
Normal file
24
lib/types.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user