@print-one/grapesjs
Version:
Free and Open Source Web Builder Framework
31 lines (25 loc) • 622 B
text/typescript
import { CommandObject } from '../view/CommandAbstract';
export interface CommandsConfig {
/**
* Style prefix
* @default 'com-'
*/
stylePrefix?: string;
/**
* Default commands
* @default {}
*/
defaults?: Record<string, CommandObject>;
/**
* If true, stateful commands (with `run` and `stop` methods) can't be executed multiple times.
* If the command is already active, running it again will not execute the `run` method.
* @default true
*/
strict?: boolean;
}
const config: CommandsConfig = {
stylePrefix: 'com-',
defaults: {},
strict: true,
};
export default config;