Fix various repository bugs
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import {uniq, identity, flatten, pushToMapKey, intersection, tryCatch, now} from '@welshman/lib'
|
||||
import type {Rumor, Filter} from '@welshman/util'
|
||||
import type {TrustedEvent, Filter} from '@welshman/util'
|
||||
import {Tags, intersectFilters, getAddress, getIdFilters, unionFilters} from '@welshman/util'
|
||||
import type {CreatedAtItem, RequestItem, ListItem, WOTItem, DVMItem, Scope, Feed, FeedOptions} from './core'
|
||||
import {hasSubFeeds, getFeedArgs, feedsFromTags} from './utils'
|
||||
import {FeedType} from './core'
|
||||
|
||||
export class FeedCompiler<E extends Rumor> {
|
||||
export class FeedCompiler<E extends TrustedEvent> {
|
||||
constructor(readonly options: FeedOptions<E>) {}
|
||||
|
||||
walk(feed: Feed, visit: (feed: Feed) => void) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {inc, max, min, now} from '@welshman/lib'
|
||||
import type {Rumor, Filter} from '@welshman/util'
|
||||
import type {TrustedEvent, Filter} from '@welshman/util'
|
||||
import {EPOCH, guessFilterDelta} from '@welshman/util'
|
||||
import type {Feed, RequestItem, FeedOptions} from './core'
|
||||
import {FeedType} from './core'
|
||||
@@ -12,7 +12,7 @@ export type LoadOpts<E> = {
|
||||
|
||||
export type Loader = (limit: number) => Promise<void>
|
||||
|
||||
export class FeedLoader<E extends Rumor> {
|
||||
export class FeedLoader<E extends TrustedEvent> {
|
||||
compiler: FeedCompiler<E>
|
||||
|
||||
constructor(readonly options: FeedOptions<E>) {
|
||||
|
||||
Reference in New Issue
Block a user