Skip to content

Commit 535ea44

Browse files
authored
chore: replace non-breaking spaces (#14098)
* replace nbsp in docs * replace nbsp in test * replace nbsp in types * regenerate types
1 parent e7d68d8 commit 535ea44

File tree

7 files changed

+11
-12
lines changed

7 files changed

+11
-12
lines changed

documentation/docs/03-template-syntax/11-bind.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ All visible elements have the following readonly bindings, measured with a `Resi
230230
bind:this={dom_node}
231231
```
232232

233-
To get a reference to a DOM node, use `bind:this`. The value will be `undefined` until the component is mounted — in other words, you should read it inside an effect or an event handler, but not during component initialisation:
233+
To get a reference to a DOM node, use `bind:this`. The value will be `undefined` until the component is mounted — in other words, you should read it inside an effect or an event handler, but not during component initialisation:
234234

235235
```svelte
236236
<script>

documentation/docs/03-template-syntax/13-transition.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ transition = (node: HTMLElement, params: any, options: { direction: 'in' | 'out'
6868

6969
Transitions can use custom functions. If the returned object has a `css` function, Svelte will generate keyframes for a [web animation](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).
7070

71-
The `t` argument passed to `css` is a value between `0` and `1` after the `easing` function has been applied. _In_ transitions run from `0` to `1`, _out_ transitions run from `1` to `0` in other words, `1` is the element's natural state, as though no transition had been applied. The `u` argument is equal to `1 - t`.
71+
The `t` argument passed to `css` is a value between `0` and `1` after the `easing` function has been applied. _In_ transitions run from `0` to `1`, _out_ transitions run from `1` to `0` in other words, `1` is the element's natural state, as though no transition had been applied. The `u` argument is equal to `1 - t`.
7272

7373
The function is called repeatedly _before_ the transition begins, with different `t` and `u` arguments.
7474

@@ -169,4 +169,3 @@ An element with transitions will dispatch the following events in addition to an
169169
</p>
170170
{/if}
171171
```
172-

documentation/docs/99-legacy/02-legacy-reactive-assignments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In legacy mode, any top-level statement (i.e. not inside a block or a function)
1515
// when `a`, `b` or `sum` change
1616
$: console.log(`${a} + ${b} = ${sum}`);
1717
18-
// this is a 'reactive assignment' — `sum` will be
18+
// this is a 'reactive assignment' — `sum` will be
1919
// recalculated when `a` or `b` change. It is
2020
// not necessary to declare `sum` separately
2121
$: sum = a + b;

documentation/docs/99-legacy/40-legacy-component-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In Svelte 3 and 4, the API for interacting with a component is different than in
1111
const component = new Component(options);
1212
```
1313

14-
A client-side component — that is, a component compiled with `generate: 'dom'` (or the `generate` option left unspecified) is a JavaScript class.
14+
A client-side component — that is, a component compiled with `generate: 'dom'` (or the `generate` option left unspecified) is a JavaScript class.
1515

1616
```ts
1717
// @noErrors

packages/svelte/src/ambient.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ declare namespace $state {
4747
| BigInt64Array
4848
| BigUint64Array;
4949

50-
/** The things that `structuredClone` can handle — https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm */
50+
/** The things that `structuredClone` can handle — https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm */
5151
export type Cloneable =
5252
| ArrayBuffer
5353
| DataView
@@ -358,7 +358,7 @@ declare function $props(): any;
358358
declare function $bindable<T>(fallback?: T): T;
359359

360360
/**
361-
* Inspects one or more values whenever they, or the properties they contain, change. Example:
361+
* Inspects one or more values whenever they, or the properties they contain, change. Example:
362362
*
363363
* ```ts
364364
* $inspect(someValue, someOtherValue)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
2-
import { writable } from 'svelte/store';
3-
const foo = writable('div');
2+
import { writable } from 'svelte/store';
3+
const foo = writable('div');
44
</script>
55

6-
<svelte:element this={$foo}></svelte:element>
6+
<svelte:element this={$foo}></svelte:element>

packages/svelte/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,7 @@ declare namespace $state {
23542354
| BigInt64Array
23552355
| BigUint64Array;
23562356

2357-
/** The things that `structuredClone` can handle — https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm */
2357+
/** The things that `structuredClone` can handle — https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm */
23582358
export type Cloneable =
23592359
| ArrayBuffer
23602360
| DataView
@@ -2665,7 +2665,7 @@ declare function $props(): any;
26652665
declare function $bindable<T>(fallback?: T): T;
26662666

26672667
/**
2668-
* Inspects one or more values whenever they, or the properties they contain, change. Example:
2668+
* Inspects one or more values whenever they, or the properties they contain, change. Example:
26692669
*
26702670
* ```ts
26712671
* $inspect(someValue, someOtherValue)

0 commit comments

Comments
 (0)