Files
paint-ui/lib
Sebastian Krüger ccdf14e78a fix(tool-loader): resolve TypeScript type error with selection tool keys
Fix TypeScript compilation error by allowing tool loader to accept both
ToolType and internal tool keys (like 'rectangular-select').

Changes:
- Change function parameter from ToolType to string internally
- Update getTool() to accept ToolType | string
- Update preloadTool() to accept ToolType | string
- Update isToolLoaded() to accept ToolType | string
- Add documentation about supporting internal tool keys

This resolves the build error where 'rectangular-select' was not
assignable to ToolType, while maintaining type safety at the public API.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 16:11:08 +01:00
..