import { RawCommands } from '../types.js' declare module '@tiptap/core' { interface Commands { setMeta: { /** * Store a metadata property in the current transaction. */ setMeta: (key: string, value: any) => ReturnType, } } } export const setMeta: RawCommands['setMeta'] = (key, value) => ({ tr }) => { tr.setMeta(key, value) return true }