Skip to content

Conversation

@that-richan
Copy link

@that-richan that-richan commented Dec 11, 2025

Handles union props in Bindings extends so that the Component type doesn't scream about too complex types when using an union with HTMLAttributes in the Props generic.

Not sure at all about the removal of Omit<Props, '$$slots' | '$$events'> but I was unable to find a reference that would prove to me that $$slots and $$events are even important to Omit there. Removed it because otherwise the render method would complain about too complex types and something seemed fishy about that. Also added NoInfer to improve some type checks which started screaming when writing the tests.

@changeset-bot
Copy link

changeset-bot bot commented Dec 11, 2025

🦋 Changeset detected

Latest commit: 59e6d4f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot
Copy link

@that-richan that-richan changed the title fix: too complex type error when using union props type by handling unions in binding generic fix: too complex type error when using union props type by handling unions in Bindings generic Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant