freshter-logs/common/types.ts

32 lines
603 B
TypeScript
Raw Normal View History

2023-04-28 19:48:34 -04:00
export { Option } from "optionals";
export type Message = {
content: string;
preset?: string;
fg?: string;
bg?: string;
font?: string;
sender?: string;
};
export type Conversation = {
name: string;
description: string;
messages: string[];
presets: Record<string, Preset>;
};
export type Preset = {
fg: string;
bg?: string;
font?: string;
};
export type Database = {
messages: Record<string, Message>;
conversations: Record<string, Conversation>;
presets: Record<string, Preset>;
message_id: number;
conversation_id: number;
};