import { Command, Commands } from '../types' declare module '@tiptap/core' { interface AllCommands { command: { /** * Define a command inline. */ command: (fn: (props: Parameters[0]) => boolean) => Command, } } } export const command: Commands['command'] = fn => props => { return fn(props) }