|
|
|
@ -408,6 +408,13 @@ declare module 'svelte' {
|
|
|
|
|
* @deprecated Use [`$effect`](https://svelte.dev/docs/svelte/$effect) instead
|
|
|
|
|
* */
|
|
|
|
|
export function afterUpdate(fn: () => void): void;
|
|
|
|
|
/**
|
|
|
|
|
* The `onFrame` function schedules a callback to run on `requestAnimationFrame`. It must be called inside an effect (e.g. during component initialisation).
|
|
|
|
|
*
|
|
|
|
|
* `onFrame` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
|
|
|
|
|
*
|
|
|
|
|
* */
|
|
|
|
|
export function onFrame<T>(fn: () => NotFunction<T> | Promise<NotFunction<T>> | (() => any)): void;
|
|
|
|
|
/**
|
|
|
|
|
* Synchronously flushes any pending state changes and those that result from it.
|
|
|
|
|
* */
|
|
|
|
@ -1671,6 +1678,7 @@ declare module 'svelte/motion' {
|
|
|
|
|
* <input type="range" bind:value={spring.target} />
|
|
|
|
|
* <input type="range" bind:value={spring.current} disabled />
|
|
|
|
|
* ```
|
|
|
|
|
* @since 5.8.0
|
|
|
|
|
*/
|
|
|
|
|
export class Spring<T> {
|
|
|
|
|
constructor(value: T, options?: SpringOpts);
|
|
|
|
|