Files
compiler-explorer/static
Matt GodboltandClaude 9086343aa3 Complete Phase 2: Remove all legacy functions and targeted 'as any' casts
- ✅ Deleted legacyComponentConfigToTyped() and typedComponentConfigToLegacy() functions entirely
- ✅ Updated all Components module functions to return TypedComponentConfig instead of ComponentConfig
- ✅ Fixed ComponentConfig interface to use literal 'component' type instead of string
- ✅ Updated ComponentStateMap to handle both empty and populated states properly
- ✅ Implemented comprehensive validation in fromGoldenLayoutConfig with proper error messages
- ✅ Removed all 25 instances of createDragSource(...) as any across 5 files
- ✅ Removed all 20+ legacyComponentConfigToTyped() calls from compiler.ts and other files
- ✅ Fixed cloneComponent() to properly construct typed state without any cast
- ✅ Fixed createToolInputView property type declaration in tool.ts
- ✅ Updated setupAdd function in main.ts to use proper TypedComponentConfig<K> typing
- ✅ All TypeScript checks pass, all tests pass (1091 tests), linter compliance achieved

Phase 2 successfully delivers on all promises: no functions with "legacy" in the name remain,
and all targeted "as any" casts have been eliminated while maintaining full functionality.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-12 17:17:58 -05:00
..
2025-05-19 06:51:21 -05:00
2025-02-26 02:07:09 +02:00
2025-02-26 02:07:09 +02:00
2025-02-26 02:07:09 +02:00
2024-10-25 12:19:04 +03:00
2025-04-24 12:10:37 -05:00
2025-04-24 12:10:37 -05:00
2025-04-24 18:41:55 -05:00