chore: replace non-breaking spaces (#14098)

* replace nbsp in docs

* replace nbsp in test

* replace nbsp in types

* regenerate types
pull/14105/head
Conduitry 4 days ago committed by GitHub
parent e7d68d8c10
commit 535ea44b9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -230,7 +230,7 @@ All visible elements have the following readonly bindings, measured with a `Resi
bind:this={dom_node} bind:this={dom_node}
``` ```
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: 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:
```svelte ```svelte
<script> <script>

@ -68,7 +68,7 @@ transition = (node: HTMLElement, params: any, options: { direction: 'in' | 'out'
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). 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).
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`. 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`.
The function is called repeatedly _before_ the transition begins, with different `t` and `u` arguments. The function is called repeatedly _before_ the transition begins, with different `t` and `u` arguments.
@ -169,4 +169,3 @@ An element with transitions will dispatch the following events in addition to an
</p> </p>
{/if} {/if}
``` ```

@ -15,7 +15,7 @@ In legacy mode, any top-level statement (i.e. not inside a block or a function)
// when `a`, `b` or `sum` change // when `a`, `b` or `sum` change
$: console.log(`${a} + ${b} = ${sum}`); $: console.log(`${a} + ${b} = ${sum}`);
// this is a 'reactive assignment' — `sum` will be // this is a 'reactive assignment' — `sum` will be
// recalculated when `a` or `b` change. It is // recalculated when `a` or `b` change. It is
// not necessary to declare `sum` separately // not necessary to declare `sum` separately
$: sum = a + b; $: sum = a + b;

@ -11,7 +11,7 @@ In Svelte 3 and 4, the API for interacting with a component is different than in
const component = new Component(options); const component = new Component(options);
``` ```
A client-side component — that is, a component compiled with `generate: 'dom'` (or the `generate` option left unspecified) is a JavaScript class. A client-side component — that is, a component compiled with `generate: 'dom'` (or the `generate` option left unspecified) is a JavaScript class.
```ts ```ts
// @noErrors // @noErrors

@ -47,7 +47,7 @@ declare namespace $state {
| BigInt64Array | BigInt64Array
| BigUint64Array; | BigUint64Array;
/** The things that `structuredClone` can handle — https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm */ /** The things that `structuredClone` can handle — https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm */
export type Cloneable = export type Cloneable =
| ArrayBuffer | ArrayBuffer
| DataView | DataView
@ -358,7 +358,7 @@ declare function $props(): any;
declare function $bindable<T>(fallback?: T): T; declare function $bindable<T>(fallback?: T): T;
/** /**
* Inspects one or more values whenever they, or the properties they contain, change. Example: * Inspects one or more values whenever they, or the properties they contain, change. Example:
* *
* ```ts * ```ts
* $inspect(someValue, someOtherValue) * $inspect(someValue, someOtherValue)

@ -1,6 +1,6 @@
<script> <script>
import { writable } from 'svelte/store'; import { writable } from 'svelte/store';
const foo = writable('div'); const foo = writable('div');
</script> </script>
<svelte:element this={$foo}></svelte:element> <svelte:element this={$foo}></svelte:element>

@ -2354,7 +2354,7 @@ declare namespace $state {
| BigInt64Array | BigInt64Array
| BigUint64Array; | BigUint64Array;
/** The things that `structuredClone` can handle — https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm */ /** The things that `structuredClone` can handle — https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm */
export type Cloneable = export type Cloneable =
| ArrayBuffer | ArrayBuffer
| DataView | DataView
@ -2665,7 +2665,7 @@ declare function $props(): any;
declare function $bindable<T>(fallback?: T): T; declare function $bindable<T>(fallback?: T): T;
/** /**
* Inspects one or more values whenever they, or the properties they contain, change. Example: * Inspects one or more values whenever they, or the properties they contain, change. Example:
* *
* ```ts * ```ts
* $inspect(someValue, someOtherValue) * $inspect(someValue, someOtherValue)

Loading…
Cancel
Save