Files
backstage/.changeset/grumpy-towns-stick.md
T
Johan Persson ab25658d7b refactor(ui): remove never-typed ghost props from useDefinition ownProps
Replace the ChildrenProps intersection approach with ResolveBgProps,
which transforms the base type so that only the relevant children
variant exists in the final type. Provider components get
childrenWithBgProvider (with children Omit'd), non-providers pass
through unchanged — no more optional never properties showing up
in autocomplete.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-11 14:05:44 +01:00

134 B

@backstage/ui
@backstage/ui
patch

Cleaned up useDefinition ownProps types to remove never-typed ghost properties from autocomplete.