Skip to content

Conversation

Jungzl
Copy link
Contributor

@Jungzl Jungzl commented Sep 29, 2025

e.g.

  const arr = $state<[number, string]>([2, '2'])
  const res = $state.snapshot(arr)

before:

  typeof res // (string | number)[]

after:

  typeof res // [number, string]

Copy link

changeset-bot bot commented Sep 29, 2025

🦋 Changeset detected

Latest commit: 5edc0ab

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

Copy link
Contributor

Playground

pnpm add https://pkg.pr.new/svelte@16864

Copy link
Member

@Rich-Harris Rich-Harris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@svelte-docs-bot
Copy link

@Rich-Harris Rich-Harris merged commit 949c026 into sveltejs:main Oct 1, 2025
14 checks passed
This was referenced Oct 1, 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.

2 participants