fix(super-editor/ui): cast TextTarget through unknown for story lookup#3020
Conversation
TS2352 in CI: TextTarget doesn't sufficiently overlap with { story?: Record<string, unknown> }, so cast via unknown first.
|
🎉 This PR is included in @superdoc-dev/mcp v0.3.0-next.14 The release is available on GitHub release |
|
🎉 This PR is included in vscode-ext v2.3.0-next.59 |
|
🎉 This PR is included in @superdoc-dev/react v1.2.0-next.57 The release is available on GitHub release |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
🎉 This PR is included in superdoc v1.30.0-next.17 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.8.0-next.32 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.8.0-next.18 |
|
🎉 This PR is included in superdoc v1.30.0 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.8.0 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.8.0 |
|
🎉 This PR is included in @superdoc-dev/mcp v0.3.0 The release is available on GitHub release |
|
🎉 This PR is included in vscode-ext v2.3.0 |
|
🎉 This PR is included in @superdoc-dev/react v1.3.0 The release is available on GitHub release |
The release build's type-check fails with TS2352 because
TextTargetdoesn't sufficiently overlap with{ story?: Record<string, unknown> }. Casting throughunknownfirst satisfies the compiler without changing runtime behavior.Failing job: https://github.com/superdoc-dev/superdoc/actions/runs/25137297898/job/73678726322
Verified:
pnpm run type-check→ exit 0