mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat(types): export Language and Category for better TS type Inference (#19651)
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@ import type { Context } from 'hono';
|
||||
|
||||
// Make sure it's synchronise with scripts/workflow/data.ts
|
||||
// and lib/routes/rsshub/routes.ts
|
||||
type Category =
|
||||
export type Category =
|
||||
| 'popular'
|
||||
| 'social-media'
|
||||
| 'new-media'
|
||||
@@ -98,7 +98,7 @@ export type Data = {
|
||||
ttl?: number;
|
||||
};
|
||||
|
||||
type Language =
|
||||
export type Language =
|
||||
| 'af'
|
||||
| 'sq'
|
||||
| 'eu'
|
||||
|
||||
Reference in New Issue
Block a user