feat(types): export Language and Category for better TS type Inference (#19651)
This commit is contained in:
parent
874e912778
commit
ea821def53
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue