19 lines
458 B
TypeScript
Raw Normal View History

2024-10-05 17:20:49 +08:00
import type { NewsItem, SourceID } from "@shared/types"
2024-10-04 15:36:03 +08:00
import peopledaily from "./peopledaily"
import weibo from "./weibo"
import zaobao from "./zaobao"
2024-10-05 01:22:41 +08:00
import krQ from "./36kr-quick"
import wallstreetcn from "./wallstreetcn"
// import kr from "./36kr"
2024-10-03 13:16:14 +08:00
export { fallback } from "./fallback"
2024-10-05 17:20:49 +08:00
export const sourcesFn = {
2024-10-03 13:16:14 +08:00
peopledaily,
weibo,
2024-10-04 15:36:03 +08:00
zaobao,
2024-10-05 01:22:41 +08:00
wallstreetcn,
"36kr-quick": krQ,
// "36kr": kr,
2024-10-05 17:20:49 +08:00
} as Record<SourceID, () => Promise<NewsItem[]>>