@cutls/megalodon
Version:
Mastodon, Pleroma, Misskey API client for node.js and browser
35 lines (34 loc) • 772 B
TypeScript
/// <reference path="user.d.ts" />
/// <reference path="emoji.d.ts" />
/// <reference path="file.d.ts" />
/// <reference path="poll.d.ts" />
declare namespace MisskeyEntity {
type Note = {
id: string
createdAt: string
userId: string
user: User
text: string | null
cw: string | null
visibility: 'public' | 'home' | 'followers' | 'specified'
renoteCount: number
repliesCount: number
reactions: {
[key: string]: number
}
emojis: Array<Emoji> | EmojiKeyValue
fileIds: Array<string>
files: Array<File>
replyId: string | null
renoteId: string | null
uri?: string
reply?: Note
renote?: Note
viaMobile?: boolean
tags?: Array<string>
poll?: Poll
mentions?: Array<string>
myReaction?: string
reactionEmojis?: EmojiKeyValue
}
}