mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 13:11:17 +00:00
initial commit
This commit is contained in:
7
packages/aris-core/data-source.ts
Normal file
7
packages/aris-core/data-source.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
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[]>
|
||||
}
|
||||
Reference in New Issue
Block a user