Skip to content

Commit 9291122

Browse files
committed
type error for adding intial content
1 parent ad039ed commit 9291122

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/blocknote/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ export type BlockNoteSyncOptions = UseSyncOptions & {
1313
* If you pass options into the editor, you should pass them here, to ensure
1414
* the initialContent is parsed with the correct schema.
1515
*/
16-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
17-
editorOptions?: Partial<BlockNoteEditorOptions<any, any, any>>;
16+
editorOptions?: Partial<
17+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
18+
Omit<BlockNoteEditorOptions<any, any, any>, "initialContent">
19+
>;
1820
};
1921

2022
export function useBlockNoteSync(

0 commit comments

Comments
 (0)