@twip/web
    Preparing search index...

    Interface CommandState<K>

    A command's entry in EditorState.commands.

    interface CommandState<K extends CommandId = CommandId> {
        checked?: boolean;
        enabled: boolean;
        value?: K extends keyof CommandValues ? CommandValues[K] : never;
    }

    Type Parameters

    Index
    checked?: boolean

    For on/off commands: whether it is on.

    enabled: boolean

    Whether running it now would succeed.

    value?: K extends keyof CommandValues ? CommandValues[K] : never

    The command's state value, where it has one.