sveltejs / svelte

Cybernetically enhanced web apps
https://svelte.dev
MIT License
76.8k stars 3.98k forks source link

Update 02-runes.md typescript example #11446

Closed CodeDoes closed 2 weeks ago

CodeDoes commented 2 weeks ago

I've tried the docs, the function seems to have changed

Svelte 5 rewrite

Please note that the Svelte codebase is currently being rewritten for Svelte 5. Changes should target Svelte 5, which lives on the default branch (main).

If your PR concerns Svelte 4 (including updates to svelte.dev.docs), please ensure the base branch is svelte-4 and not main.

Before submitting the PR, please make sure you do the following

Tests and linting

changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

Latest commit: 2da49156fb747825b5cefe0c3ebb803431f342f2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Conduitry commented 2 weeks ago

This is specifically showing an old syntax that we don't use anymore, and the reason that we no longer use it.