2024-10-21 02:18:36 +08:00

34 lines
838 B
TypeScript

import type { DisabledSourceID, 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 kr36 from "./36kr"
import wallstreetcn from "./wallstreetcn"
import douyin from "./douyin"
import toutiao from "./toutiao"
import cls from "./cls"
import sputniknewscn from "./sputniknewscn"
import xueqiu from "./xueqiu"
import type { SourceGetter } from "#/types"
export const sourcesGetters = {
weibo,
zaobao,
...v2ex,
ithome,
zhihu,
coolapk,
cankaoxiaoxi,
sputniknewscn,
...wallstreetcn,
...xueqiu,
douyin,
...cls,
toutiao,
...kr36,
} as Record<SourceID, SourceGetter> & Partial<Record<DisabledSourceID, SourceGetter>>