@chamn/engine
Version:
9 lines (8 loc) • 422 B
TypeScript
import { CPlugin, PluginInstance } from '../../core/pluginManager';
export type HotKeysExport = {
disable: (status: boolean) => void;
addHotAction: (actionKey: (string | number)[], cb: () => void) => void;
};
export type HotKeysPluginConfig = object;
export type HotKeysPluginType = CPlugin<HotKeysPluginConfig, HotKeysExport>;
export type HotKeysPluginInstance = PluginInstance<HotKeysPluginType, HotKeysExport>;