Files
compiler-explorer/static
Matt GodboltandClaude 516c7ed299 Fix hub method signatures and eliminate unsafe casts
Found and fixed incorrect TypeScript definitions in hub.ts:
- addAtRoot and addInEditorStackIfPossible should accept GoldenLayout.ItemConfig
- Not GoldenLayout.ContentItem as incorrectly typed before
- GoldenLayout's addChild method accepts config objects, not ContentItem instances

This allows removing all 'as unknown as' casts in setupAdd function calls.
The methods were working correctly at runtime but had wrong type signatures.

Evidence: hub.ts line 395-398 shows addChild being called with config objects,
and elem being used in content arrays - proving elem should be ItemConfig.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 11:33:43 -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
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