Files
aris/packages/aris-core/data-source.ts

8 lines
257 B
TypeScript
Raw Permalink Normal View History

2026-01-16 00:56:55 +00:00
import type { Context } from "./context"
import type { FeedItem } from "./feed"
export interface DataSource<TItem extends FeedItem = FeedItem, TConfig = unknown> {
readonly type: TItem["type"]
query(context: Context, config: TConfig): Promise<TItem[]>
}