Skip to content

Commit 28ac327

Browse files
committed
fix: remove stale @ts-expect-error directives that are no longer needed
1 parent 27d89cb commit 28ac327

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

packages/core/src/editor/BlockNoteEditor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ export class BlockNoteEditor<
423423
},
424424
};
425425

426-
// @ts-expect-error - schema type mismatch due to conditional default
427426
this.schema = newOptions.schema;
428427
this.blockImplementations = newOptions.schema.blockSpecs;
429428
this.inlineContentImplementations = newOptions.schema.inlineContentSpecs;

packages/core/src/schema/inlineContent/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type InlineContentConfig = CustomInlineContentConfig | "text" | "link";
1515

1616
// InlineContentImplementation contains the "implementation" info about an InlineContent element
1717
// such as the functions / Nodes required to render and / or serialize it
18-
// @ts-expect-error - T extends union but conditional type only narrows custom configs
1918
export type InlineContentImplementation<T extends InlineContentConfig> =
2019
T extends "link" | "text"
2120
? undefined

0 commit comments

Comments
 (0)