2024-10-13 11:39:28 +08:00

29 lines
668 B
TypeScript

import type { NewsItem, SourceID } from "@shared/types"
import weibo from "./weibo"
import zaobao from "./zaobao"
import v2ex from "./v2ex"
import ithome from "./ithome"
import zhihu from "./zhihu"
import cankaoxiaoxi from "./cankaoxiaoxi"
import coolapk from "./coolapk"
import sputniknewscn from "./sputniknewscn"
import kr from "./36kr"
import wallstreetcn from "./wallstreetcn"
import douyin from "./douyin"
import toutiao from "./toutiao"
export const sourcesFn = {
weibo,
zaobao,
v2ex,
ithome,
zhihu,
coolapk,
cankaoxiaoxi,
sputniknewscn,
wallstreetcn,
douyin,
toutiao,
"36kr-quick": kr,
} as Record<SourceID, () => Promise<NewsItem[]>>