docs/plans/4935-use-toc-sidebar-state-types.md
#4935 now returns any instead of the state' type@platejs/toc/react hook contract so consumers get real inference againuseTocSideBarState.any seam in the hook.packages/toc/src/react/hooks/useTocSideBar.ts.: any even though the docs promise a typed object shape.#4895 says consumer-facing type regressions need a public-contract assertion, not just source inspection.@platejs/toc, but they do not currently call useTocSideBarState; package type-tests are the tighter seam here.docs/solutions/patterns/critical-patterns.md does not exist in this repo, so there was no extra critical-pattern file to load.IsAny assertion inside useTocSideBar.spec.tsx, then package-scoped build/typecheck.pnpm test:types still crashes with a TypeScript 6 Debug Failure, so repo-wide type-tests are not a usable verification lane for this task.packages/toc/src/react/hooks/useTocSideBar.spec.tsx fails on an existing monorepo ENOENT .../node_modules/react resolution problem unrelated to this change.task, planning-with-files, learnings-researcher, and tdd.#4935, inspected the TOC hook, found the explicit : any, and checked relevant learnings.IsAny compile assertions to packages/toc/src/react/hooks/useTocSideBar.spec.tsx.pnpm install, pnpm turbo build --filter=./packages/toc, and pnpm turbo typecheck --filter=./packages/toc; the new assertions failed while useTocSideBarState returned any.: any from packages/toc/src/react/hooks/useTocSideBar.ts.pnpm turbo build --filter=./packages/toc, pnpm turbo typecheck --filter=./packages/toc, and pnpm lint:fix.pnpm check is blocked by an unrelated fast-test failure in packages/dnd/src/DndPlugin.spec.tsx (ENOENT .../packages/dnd/node_modules/react), so no PR was opened from this turn.../informed; the matching sibling repo here is ../informed-fe-v3, which already had scripts/reinstall.sh.node_modules/react symlinks pointing into missing root/node_modules/.bun/... targets; pnpm install alone did not repair them.tooling/scripts/reinstall.sh and exposed it as pnpm run reinstall.pnpm run reinstall, then verified bun test packages/dnd/src/DndPlugin.spec.tsx, pnpm --filter @platejs/dnd test src/DndPlugin.spec.tsx, pnpm test, and pnpm lint:fix all pass.