fix: resolve TypeScript errors in frontend build
This commit is contained in:
53
node_modules/@tiptap/extension-bold/dist/index.d.cts
generated
vendored
Normal file
53
node_modules/@tiptap/extension-bold/dist/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import { Mark } from '@tiptap/core';
|
||||
|
||||
/** @jsxImportSource @tiptap/core */
|
||||
|
||||
interface BoldOptions {
|
||||
/**
|
||||
* HTML attributes to add to the bold element.
|
||||
* @default {}
|
||||
* @example { class: 'foo' }
|
||||
*/
|
||||
HTMLAttributes: Record<string, any>;
|
||||
}
|
||||
declare module '@tiptap/core' {
|
||||
interface Commands<ReturnType> {
|
||||
bold: {
|
||||
/**
|
||||
* Set a bold mark
|
||||
*/
|
||||
setBold: () => ReturnType;
|
||||
/**
|
||||
* Toggle a bold mark
|
||||
*/
|
||||
toggleBold: () => ReturnType;
|
||||
/**
|
||||
* Unset a bold mark
|
||||
*/
|
||||
unsetBold: () => ReturnType;
|
||||
};
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Matches bold text via `**` as input.
|
||||
*/
|
||||
declare const starInputRegex: RegExp;
|
||||
/**
|
||||
* Matches bold text via `**` while pasting.
|
||||
*/
|
||||
declare const starPasteRegex: RegExp;
|
||||
/**
|
||||
* Matches bold text via `__` as input.
|
||||
*/
|
||||
declare const underscoreInputRegex: RegExp;
|
||||
/**
|
||||
* Matches bold text via `__` while pasting.
|
||||
*/
|
||||
declare const underscorePasteRegex: RegExp;
|
||||
/**
|
||||
* This extension allows you to mark text as bold.
|
||||
* @see https://tiptap.dev/api/marks/bold
|
||||
*/
|
||||
declare const Bold: Mark<BoldOptions, any>;
|
||||
|
||||
export { Bold, type BoldOptions, Bold as default, starInputRegex, starPasteRegex, underscoreInputRegex, underscorePasteRegex };
|
||||
Reference in New Issue
Block a user