Files
zap.stream/src/types.ts
2023-08-01 14:16:42 +02:00

35 lines
537 B
TypeScript

export interface RelaySettings {
read: boolean;
write: boolean;
}
export interface Relays {
[key: string]: RelaySettings;
}
export type Tag = string[];
export type Tags = Tag[];
export type EmojiTag = ["emoji", string, string];
export interface Emoji {
native?: string;
id?: string;
}
export interface EmojiPack {
address: string;
name: string;
author: string;
emojis: EmojiTag[];
}
export interface Badge {
name: string;
thumb?: string;
image?: string;
awardees: Set<string>;
accepted: Set<string>;
}