fix: resolve TypeScript errors in frontend build

This commit is contained in:
Hiro
2026-03-30 23:16:07 +00:00
parent b733306773
commit 24925e1acb
2941 changed files with 418042 additions and 49 deletions

View File

@@ -0,0 +1,34 @@
import { Node } from '@tiptap/core';
interface HardBreakOptions {
/**
* Controls if marks should be kept after being split by a hard break.
* @default true
* @example false
*/
keepMarks: boolean;
/**
* HTML attributes to add to the hard break element.
* @default {}
* @example { class: 'foo' }
*/
HTMLAttributes: Record<string, any>;
}
declare module '@tiptap/core' {
interface Commands<ReturnType> {
hardBreak: {
/**
* Add a hard break
* @example editor.commands.setHardBreak()
*/
setHardBreak: () => ReturnType;
};
}
}
/**
* This extension allows you to insert hard breaks.
* @see https://www.tiptap.dev/api/nodes/hard-break
*/
declare const HardBreak: Node<HardBreakOptions, any>;
export { HardBreak, type HardBreakOptions, HardBreak as default };