From ea821def533b778bc581da024c8f6f1d84242bfa Mon Sep 17 00:00:00 2001 From: Cason Kervis Date: Tue, 22 Jul 2025 14:53:39 +0800 Subject: [PATCH] feat(types): export Language and Category for better TS type Inference (#19651) --- lib/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/types.ts b/lib/types.ts index 57c483a356..6b45620f31 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -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'