Skip to content

Commit

Permalink
Sync svelte docs (#1091)
Browse files Browse the repository at this point in the history
sync svelte docs

Co-authored-by: Rich-Harris <[email protected]>
  • Loading branch information
github-actions[bot] and Rich-Harris authored Jan 7, 2025
1 parent a6e93ea commit de5ce63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions apps/svelte.dev/content/docs/svelte/02-runes/05-$props.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,6 @@ You can, of course, separate the type declaration from the annotation:
</script>
```

> [!NOTE] Interfaces for native DOM elements are provided in the `svelte/elements` module (see [Typing wrapper components](typescript#Typing-wrapper-components))
Adding types is recommended, as it ensures that people using your component can easily discover which props they should provide.
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ let { banner }: { banner: Snippet<[{ text: string }]> } = $props();
```
You can only call a snippet through the `{@render ...}` tag.

/docs/svelte/snippet
See the [snippet documentation](/docs/svelte/snippet) for more info.

<div class="ts-block">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import {

The current version, as set in package.json.

/docs/svelte-compiler#svelte-version

<div class="ts-block">

```dts
Expand Down

0 comments on commit de5ce63

Please sign in to comment.