Skip to content

fix: require svelte widget props in types#1002

Open
sanmaxdev wants to merge 2 commits into
manzt:mainfrom
sanmaxdev:fix/svelte-required-widget-props
Open

fix: require svelte widget props in types#1002
sanmaxdev wants to merge 2 commits into
manzt:mainfrom
sanmaxdev:fix/svelte-required-widget-props

Conversation

@sanmaxdev

Copy link
Copy Markdown

Summary

  • Update the @anywidget/svelte defineWidget component type so model and bindings are required props.
  • Add a runtime guard before mounting to keep the required bindings type sound.

Closes #1000

Testing

  • pnpm --filter @anywidget/svelte exec tsc --noEmit false --emitDeclarationOnly
  • pnpm exec tsc --build packages/svelte/tsconfig.json --pretty false
  • pnpm exec vp check packages/svelte/src/index.js

@changeset-bot

changeset-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7173e55

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

This PR includes changesets to release 1 package
Name Type
@anywidget/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

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.

Incorrect typing in @anywidget/svelte

1 participant