forked from
npmx.dev/npmx.dev
[READ-ONLY]
a fast, modern browser for the npm registry
1import type * as app from '#shared/types/lexicons/app'
2
3export type CommentEmbed =
4 | { type: 'images'; images: app.bsky.embed.images.ViewImage[] }
5 | { type: 'external'; external: app.bsky.embed.external.ViewExternal }
6
7export interface Comment {
8 uri: string
9 cid: string
10 author: Pick<app.bsky.actor.defs.ProfileViewBasic, 'did' | 'handle' | 'displayName' | 'avatar'>
11 text: string
12 facets?: app.bsky.richtext.facet.Main[]
13 embed?: CommentEmbed
14 createdAt: string
15 likeCount: number
16 replyCount: number
17 repostCount: number
18 replies: Comment[]
19}