I'm currently working on extending a table extension from tiptap and incorporating an additional command.
declare module '@tiptap/core' {
interface Commands<ReturnType> {
table: {
setTableClassName: () => ReturnType;
};
}
}
export const CustomTable = Table.extend({
addAttributes() {},
addCommands() {}
})
After adding the above code, I encountered the following error:
Subsequent property declarations must have the same type. Property 'table' must be of type '{ insertTable: (options?: { rows?: number | undefined; cols?: number | undefined; withHeaderRow?: boolean | undefined; } | undefined) => ReturnType; addColumnBefore: () => ReturnType; ... 16 more ...; setCellSelection: (position: { ...; }) => ReturnType; }', but here has type '{ setTableClassName: () => ReturnType; }'.ts(2717)
table.d.ts(14, 9): 'table' was also declared here.
How can I go about resolving this issue?