Files
plainleaf/type/client.ts
T
Zef HemelandGitHub 6b69449d05 More JSR (#1027)
* Move all syscalls to JSR-style package naming
* Eliminating some prefixes in import maps
2024-08-06 20:11:38 +02:00

42 lines
766 B
TypeScript

// Used by FilterBox
export type FilterOption = {
name: string;
description?: string;
orderId?: number;
hint?: string;
classes?: string;
} & Record<string, any>;
export type Notification = {
id: number;
message: string;
type: "info" | "error";
date: Date;
};
export type PanelMode = number;
export type Shortcut = {
// Command we're creating the shortcut for
command: string;
// (Re)bind to keyboard shortcut
key?: string;
mac?: string;
// Bind to slash command
slashCommand?: string;
// Tweak priority in command palette
priority?: number;
};
export type ActionButton = {
icon: string;
description?: string;
command: string;
args?: any[];
mobile?: boolean;
};
export type EmojiConfig = {
aliases: string[][];
};