UNPKG

@cutls/megalodon

Version:

Mastodon, Pleroma, Misskey API client for node.js and browser

32 lines (31 loc) 721 B
import { User } from './user.js' import { Emoji } from './emoji.js' import { File } from './file.js' import { Poll } from './poll.js' export type Note = { id: string createdAt: string userId: string user: User text: string | null cw?: string | null visibility: NoteVisibility renoteCount: number repliesCount: number reactions: { [key: string]: number } emojis?: Array<Emoji> | null fileIds?: Array<string> files?: Array<File> replyId?: string | null renoteId?: string | null uri?: string reply?: Note renote?: Note tags?: Array<string> poll?: Poll | null mentions?: Array<string> myReaction?: string | null } export type NoteVisibility = 'public' | 'home' | 'followers' | 'specified' | 'hidden'