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,38 @@
import { Mark } from '@tiptap/core';
interface UnderlineOptions {
/**
* HTML attributes to add to the underline element.
* @default {}
* @example { class: 'foo' }
*/
HTMLAttributes: Record<string, any>;
}
declare module '@tiptap/core' {
interface Commands<ReturnType> {
underline: {
/**
* Set an underline mark
* @example editor.commands.setUnderline()
*/
setUnderline: () => ReturnType;
/**
* Toggle an underline mark
* @example editor.commands.toggleUnderline()
*/
toggleUnderline: () => ReturnType;
/**
* Unset an underline mark
* @example editor.commands.unsetUnderline()
*/
unsetUnderline: () => ReturnType;
};
}
}
/**
* This extension allows you to create underline text.
* @see https://www.tiptap.dev/api/marks/underline
*/
declare const Underline: Mark<UnderlineOptions, any>;
export { Underline, type UnderlineOptions, Underline as default };