41 lines
746 B
TypeScript
41 lines
746 B
TypeScript
// Used by FilterBox
|
|
export type FilterOption = {
|
|
name: string;
|
|
description?: string;
|
|
orderId?: number;
|
|
hint?: 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[][];
|
|
};
|