mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 21:21:21 +00:00
8 lines
257 B
TypeScript
8 lines
257 B
TypeScript
|
|
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[]>
|
||
|
|
}
|