fix: resolve TypeScript errors in frontend build
This commit is contained in:
34
node_modules/@tiptap/extension-hard-break/dist/index.d.ts
generated
vendored
Normal file
34
node_modules/@tiptap/extension-hard-break/dist/index.d.ts
generated
vendored
Normal 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 };
|
||||
Reference in New Issue
Block a user