|
|
|
@ -2157,14 +2157,14 @@ declare module 'svelte/store' {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* https://svelte.dev/docs/svelte-store#derived
|
|
|
|
* https://svelte.dev/docs/svelte-store#derived
|
|
|
|
* */
|
|
|
|
* */
|
|
|
|
export function derived<S extends Stores, T>(stores: S, fn: (values: StoresValues<S>) => T, initial_value?: T | undefined): Readable<T>;
|
|
|
|
export function derived<S extends Stores, T>(stores: S, fn: (values: StoresValues<S>, set: (value: T) => void, update: (fn: Updater<T>) => void) => Unsubscriber | void, initial_value?: T | undefined): Readable<T>;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Derived value store by synchronizing one or more readable stores and
|
|
|
|
* Derived value store by synchronizing one or more readable stores and
|
|
|
|
* applying an aggregation function over its input values.
|
|
|
|
* applying an aggregation function over its input values.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* https://svelte.dev/docs/svelte-store#derived
|
|
|
|
* https://svelte.dev/docs/svelte-store#derived
|
|
|
|
* */
|
|
|
|
* */
|
|
|
|
export function derived<S extends Stores, T>(stores: S, fn: (values: StoresValues<S>, set: (value: T) => void, update: (fn: Updater<T>) => void) => Unsubscriber | void, initial_value?: T | undefined): Readable<T>;
|
|
|
|
export function derived<S extends Stores, T>(stores: S, fn: (values: StoresValues<S>) => T, initial_value?: T | undefined): Readable<T>;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Takes a store and returns a new one derived from the old one that is readable.
|
|
|
|
* Takes a store and returns a new one derived from the old one that is readable.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
|