-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat: Variadic snippets #9987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Variadic snippets #9987
Conversation
🦋 Changeset detectedLatest commit: 9b01999 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
@tcc-sejohnson is attempting to deploy a commit to the Svelte Team on Vercel. A member of the Team first needs to authorize it. |
oops, this was supposed to be a draft. It's obviously not ready, lol |
…c-sejohnson/svelte into elliott/add-variadic-snippets
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e498b26
to
f10c6ff
Compare
Svelte 5 rewrite
This would close #9672, assuming we want it. I kind of like it!
This allows snippets to have multiple arguments in the type system. For example, you could type a component expecting a two-argument snippet as:
It would also enable truly variadic snippets:
would be renderable as:
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.Tests and linting
pnpm test
and lint the project withpnpm lint