Files
plainleaf/type/client.ts
T
2025-06-16 17:13:55 +02:00

44 lines
940 B
TypeScript

// Used by FilterBox
export type FilterOption = {
name: string;
description?: string;
orderId?: number;
hint?: string;
hintInactive?: boolean;
classes?: string;
} & Record<string, any>;
export type Notification = {
id: number;
message: string;
type: "info" | "error";
date: Date;
};
export type PanelMode = number;
export type EmojiConfig = {
aliases: string[][];
};
export type SmartQuotesConfig = {
enabled?: boolean;
double?: { left?: string; right?: string };
single?: { left?: string; right?: string };
};
type vimMode = "normal" | "insert" | "visual";
export type VimConfig = {
unmap?: (string | { key: string; mode?: vimMode })[];
map?: { map: string; to: string; mode?: vimMode }[];
noremap?: { map: string; to: string; mode?: vimMode }[];
commands?: { ex: string; command: string }[];
};
export type QueryCollationConfig = {
enabled?: boolean;
locale?: string;
options?: object;
};