diff --git a/src/App.test.tsx b/src/App.test.tsx
index 76beef7a..4e49da70 100644
--- a/src/App.test.tsx
+++ b/src/App.test.tsx
@@ -83,7 +83,7 @@ vi.mock('@blocknote/react', () => ({
}))
vi.mock('@blocknote/mantine', () => ({
- BlockNoteView: ({ children }: any) =>
{children}
,
+ BlockNoteView: ({ children }: { children?: React.ReactNode }) => {children}
,
}))
vi.mock('@blocknote/mantine/style.css', () => ({}))
diff --git a/src/components/Editor.test.tsx b/src/components/Editor.test.tsx
index 89aea5dc..c97e6068 100644
--- a/src/components/Editor.test.tsx
+++ b/src/components/Editor.test.tsx
@@ -4,13 +4,13 @@ import { describe, it, expect, vi } from 'vitest'
// Hoisted mock editor — available before vi.mock factory runs.
// Tests can reconfigure spies (e.g. mockTryParse.mockResolvedValue) before rendering.
const mockEditor = vi.hoisted(() => ({
- tryParseMarkdownToBlocks: vi.fn(async () => [] as any[]),
+ tryParseMarkdownToBlocks: vi.fn(async () => [] as unknown[]),
replaceBlocks: vi.fn(),
insertBlocks: vi.fn(),
document: [{ id: '1', type: 'paragraph', content: [], props: {}, children: [] }],
insertInlineContent: vi.fn(),
onMount: vi.fn((cb: () => void) => { cb(); return () => {} }),
- prosemirrorView: {} as any,
+ prosemirrorView: {} as Record,
blocksToHTMLLossy: vi.fn(() => ''),
_tiptapEditor: { commands: { setContent: vi.fn() } },
}))
@@ -33,7 +33,7 @@ vi.mock('@blocknote/react', () => ({
}))
vi.mock('@blocknote/mantine', () => ({
- BlockNoteView: ({ children }: any) => {children}
,
+ BlockNoteView: ({ children }: { children?: React.ReactNode }) => {children}
,
}))
vi.mock('@blocknote/mantine/style.css', () => ({}))
diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx
index 8dcf883a..c0f3ceca 100644
--- a/src/components/Editor.tsx
+++ b/src/components/Editor.tsx
@@ -238,7 +238,7 @@ export const Editor = memo(function Editor({
},
})
// Cache parsed blocks per tab path for instant switching
- const tabCacheRef = useRef