Skip to content

Mark the remaining type-only imports as types - #1

Merged
ccombe merged 1 commit into
untangle-circular-depsfrom
followup/type-only-imports
Nov 9, 2026
Merged

ccombe merged 1 commit into
untangle-circular-depsfrom
followup/type-only-imports

Conversation

@ccombe

@ccombe ccombe commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Marks the imports from the review as type-only: NodeApi in create-list, RootState in context, TreeProps in initial.ts, DragItem in the drop hook, and OpenMap plus the handlers and renderers namespaces in tree-props.
  • Same treatment for DragItem in the drag hook and the outer drop hook, and for DndProviderProps in tree-props.
  • Leaves the consistent-type-imports lint rule off. Enabling it reports 70 more imports, mostly in tests and the showcase.

Based on untangle-circular-deps (jameskerr#400).

Test plan

  • yarn lint
  • yarn workspace react-arborist test: 13 suites, 138 tests, no console warnings (run on the factory branch, which contains this commit)

These symbols are only used as types: NodeApi in create-list, RootState in context, TreeProps in initial state, DragItem in the drag and drop hooks, and OpenMap plus the handlers and renderers namespaces in tree props.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ccombe
ccombe merged commit a5d829f into untangle-circular-deps Nov 9, 2026
1 of 2 checks passed
@ccombe
ccombe deleted the followup/type-only-imports branch November 20, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant