Skip to content

Commit ab142c4

Browse files
Sync svelte docs (#1170)
sync svelte docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent 37ccfd3 commit ab142c4

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

apps/svelte.dev/content/docs/svelte/02-runes/01-what-are-runes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NOTE: do not edit this file, it is generated in apps/svelte.dev/scripts/sync-doc
33
title: What are runes?
44
---
55

6-
> [!NOTE] **rune** /ro͞on/ _noun_
6+
> [!NOTE] **rune** /ruːn/ _noun_
77
>
88
> A letter or mark used as a mystical or magic symbol.
99

apps/svelte.dev/content/docs/svelte/98-reference/.generated/compile-errors.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ Attribute values containing `{...}` must be enclosed in quote marks, unless the
8484
`bind:group` can only bind to an Identifier or MemberExpression
8585
```
8686

87+
### bind_group_invalid_snippet_parameter
88+
89+
```
90+
Cannot `bind:group` to a snippet parameter
91+
```
92+
8793
### bind_invalid_expression
8894

8995
```

apps/svelte.dev/content/docs/svelte/98-reference/20-svelte.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,13 @@ function createRawSnippet<Params extends unknown[]>(
278278

279279
## flushSync
280280

281-
Synchronously flushes any pending state changes and those that result from it.
281+
Synchronously flush any pending updates.
282+
Returns void if no callback is provided, otherwise returns the result of calling the callback.
282283

283284
<div class="ts-block">
284285

285286
```dts
286-
function flushSync(fn?: (() => void) | undefined): void;
287+
function flushSync<T = void>(fn?: (() => T) | undefined): T;
287288
```
288289

289290
</div>
@@ -707,6 +708,15 @@ sync?: boolean;
707708

708709
<div class="ts-block-property">
709710

711+
```dts
712+
idPrefix?: string;
713+
```
714+
715+
<div class="ts-block-property-details"></div>
716+
</div>
717+
718+
<div class="ts-block-property">
719+
710720
```dts
711721
$$inline?: boolean;
712722
```

apps/svelte.dev/content/docs/svelte/98-reference/21-svelte-server.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function render<
3030
options?: {
3131
props?: Omit<Props, '$$slots' | '$$events'>;
3232
context?: Map<any, any>;
33+
idPrefix?: string;
3334
}
3435
]
3536
: [
@@ -39,6 +40,7 @@ function render<
3940
options: {
4041
props: Omit<Props, '$$slots' | '$$events'>;
4142
context?: Map<any, any>;
43+
idPrefix?: string;
4244
}
4345
]
4446
): RenderOutput;

apps/svelte.dev/content/docs/svelte/98-reference/30-compiler-errors.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ Attribute values containing `{...}` must be enclosed in quote marks, unless the
8989
`bind:group` can only bind to an Identifier or MemberExpression
9090
```
9191

92+
### bind_group_invalid_snippet_parameter
93+
94+
```
95+
Cannot `bind:group` to a snippet parameter
96+
```
97+
9298
### bind_invalid_expression
9399

94100
```

0 commit comments

Comments
 (0)