Re-work feed to reduce annoyance of calling loaders

This commit is contained in:
Jon Staab
2024-11-07 09:07:03 -08:00
parent a3987cbf88
commit 0074b51aba
6 changed files with 165 additions and 121 deletions
+4
View File
@@ -124,8 +124,12 @@ export type DVMOpts = DVMRequest & {
}
export type FeedOptions = {
feed: Feed
request: (opts: RequestOpts) => Promise<void>
requestDVM: (opts: DVMOpts) => Promise<void>
getPubkeysForScope: (scope: Scope) => string[]
getPubkeysForWOTRange: (minWOT: number, maxWOT: number) => string[]
onEvent: (event: TrustedEvent) => void
onExhausted: () => void
useWindowing?: boolean
}