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>