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