fix: resolve TypeScript errors in frontend build
This commit is contained in:
28
node_modules/@tiptap/extension-paragraph/dist/index.d.cts
generated
vendored
Normal file
28
node_modules/@tiptap/extension-paragraph/dist/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import { Node } from '@tiptap/core';
|
||||
|
||||
interface ParagraphOptions {
|
||||
/**
|
||||
* The HTML attributes for a paragraph node.
|
||||
* @default {}
|
||||
* @example { class: 'foo' }
|
||||
*/
|
||||
HTMLAttributes: Record<string, any>;
|
||||
}
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands<ReturnType> {
|
||||
paragraph: {
|
||||
/**
|
||||
* Toggle a paragraph
|
||||
* @example editor.commands.toggleParagraph()
|
||||
*/
|
||||
setParagraph: () => ReturnType;
|
||||
};
|
||||
}
|
||||
}
|
||||
/**
|
||||
* This extension allows you to create paragraphs.
|
||||
* @see https://www.tiptap.dev/api/nodes/paragraph
|
||||
*/
|
||||
declare const Paragraph: Node<ParagraphOptions, any>;
|
||||
|
||||
export { Paragraph, type ParagraphOptions, Paragraph as default };
|
||||
Reference in New Issue
Block a user