Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
123456789101112131415161718192021import {type AppBskyFeedDefs, type AtpAgent} from '@atproto/api'
import {DEMO_FEED} from '#/lib/demo'import {type FeedAPI, type FeedAPIResponse} from './types'
export class DemoFeedAPI implements FeedAPI { agent: AtpAgent
constructor({agent}: {agent: AtpAgent}) { this.agent = agent }
async peekLatest(): Promise<AppBskyFeedDefs.FeedViewPost> { return DEMO_FEED.feed[0] }
async fetch(): Promise<FeedAPIResponse> { return DEMO_FEED }}