Skip to content

Commit 9009369

Browse files
committed
fix: make onBeforeChange return the correct type again
1 parent ab573fc commit 9009369

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/editor/BlockNoteEditor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,10 +915,10 @@ export class BlockNoteEditor<
915915
getChanges: () => BlocksChanged<any, any, any>;
916916
tr: Transaction;
917917
}) => boolean | void,
918-
) {
918+
): () => void {
919919
return this._extensionManager
920-
.getExtension(BlockChangeExtension)
921-
?.subscribe(callback);
920+
.getExtension(BlockChangeExtension)!
921+
.subscribe(callback);
922922
}
923923

924924
/**

0 commit comments

Comments
 (0)