Skip to content

Commit 282a966

Browse files
committed
fix "as never"
1 parent 2cfa627 commit 282a966

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/core/src/api/exporters/html/externalHTMLExporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const createExternalHTMLExporter = <
6262
) => {
6363
const domFragment = serializeInlineContentExternalHTML(
6464
editor,
65-
inlineContent as unknown as never,
65+
inlineContent,
6666
serializer,
6767
options,
6868
);

packages/core/src/api/exporters/html/util/serializeBlocksExternalHTML.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function serializeInlineContentExternalHTML<
3333
I extends InlineContentSchema,
3434
S extends StyleSchema,
3535
>(
36-
editor: BlockNoteEditor<any, I, S>,
36+
editor: BlockNoteEditor<BSchema, I, S>,
3737
blockContent: Block<BSchema, I, S>["content"],
3838
serializer: DOMSerializer,
3939
options?: { document?: Document },
@@ -228,7 +228,7 @@ function serializeBlock<
228228
if (ret.contentDOM && block.content) {
229229
const ic = serializeInlineContentExternalHTML(
230230
editor,
231-
block.content as unknown as never, // TODO
231+
block.content,
232232
serializer,
233233
options,
234234
);

packages/core/src/api/exporters/html/util/serializeBlocksInternalHTML.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function serializeInlineContentInternalHTML<
1919
I extends InlineContentSchema,
2020
S extends StyleSchema,
2121
>(
22-
editor: BlockNoteEditor<any, I, S>,
22+
editor: BlockNoteEditor<BSchema, I, S>,
2323
blockContent: Block<BSchema, I, S>["content"],
2424
serializer: DOMSerializer,
2525
blockType?: string,
@@ -151,7 +151,7 @@ function serializeBlock<
151151
if (ret.contentDOM && block.content) {
152152
const ic = serializeInlineContentInternalHTML(
153153
editor,
154-
block.content as never, // TODO
154+
block.content, // TODO
155155
serializer,
156156
block.type,
157157
options,

0 commit comments

Comments
 (0)