1 parent ec35900 commit 6c091feCopy full SHA for 6c091fe
1 file changed
src/extensions/CodeBlock/CodeBlock.ts
@@ -3,7 +3,7 @@
3
import { CodeBlockLowlight } from '@tiptap/extension-code-block-lowlight';
4
import { common, createLowlight } from 'lowlight';
5
import { ReactNodeViewRenderer } from '@tiptap/react';
6
-import { textblockTypeInputRule } from '@tiptap/core';
+import { CommandProps, textblockTypeInputRule } from '@tiptap/core';
7
8
import CodeBlockComponent from './CodeBlockComponent';
9
@@ -49,7 +49,7 @@ export const CodeBlock = CodeBlockLowlight.extend<CodeBlockOptions>({
49
...this.parent?.(),
50
createCodeBlock:
51
() =>
52
- ({ commands }: any) => {
+ ({ commands }: CommandProps) => {
53
return commands.insertContent({
54
type: this.name,
55
attrs: { language: 'javascript' },
0 commit comments