Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/editor/BlockNoteEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class BlockNoteEditor<
},
};

// @ts-ignore
// @ts-expect-error - schema type mismatch due to conditional default
this.schema = newOptions.schema;
this.blockImplementations = newOptions.schema.blockSpecs;
this.inlineContentImplementations = newOptions.schema.inlineContentSpecs;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/schema/inlineContent/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type InlineContentConfig = CustomInlineContentConfig | "text" | "link";

// InlineContentImplementation contains the "implementation" info about an InlineContent element
// such as the functions / Nodes required to render and / or serialize it
// @ts-ignore
// @ts-expect-error - T extends union but conditional type only narrows custom configs
export type InlineContentImplementation<T extends InlineContentConfig> =
T extends "link" | "text"
? undefined
Expand Down
2 changes: 1 addition & 1 deletion packages/xl-ai/src/api/formats/tests/sharedTestCases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { buildAIRequest } from "../../aiRequest/builder.js";

const BASE_FILE_PATH = path.resolve(__dirname, "__snapshots__");

// @ts-ignore
// @ts-expect-error - unused helper kept for debugging snapshots
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async function matchFileSnapshot(data: any, postFix = "") {
const t = getCurrentTest()!;
Expand Down
2 changes: 1 addition & 1 deletion packages/xl-ai/src/prosemirror/rebaseTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function getApplySuggestionsTr(editor: BlockNoteEditor<any, any, any>) {
applySuggestionsTr = tr;
});

// @ts-ignore
// @ts-expect-error - applySuggestionsTr is assigned inside the callback above
if (!applySuggestionsTr) {
throw new Error("applySuggestionsTr is not set");
}
Expand Down
2 changes: 1 addition & 1 deletion packages/xl-odt-exporter/src/odt/odtExporter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ColumnBlock, ColumnListBlock } from "@blocknote/xl-multi-column";
import { partialBlocksToBlocksForTesting } from "@shared/formatConversionTestUtil.js";

beforeAll(async () => {
// @ts-ignore
// @ts-expect-error - Blob polyfill for Node test environment
globalThis.Blob = (await import("node:buffer")).Blob;
});

Expand Down
Loading