File size: 624 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// <reference types="svelte" />
import type { Updater, Writable } from 'svelte/store';
export type ChangeFn<T> = (args: {
    curr: T;
    next: T;
}) => T;
export declare const overridable: <T>(_store: Writable<T>, onChange?: ChangeFn<T> | undefined) => {
    update: (updater: Updater<T>, sideEffect?: ((newValue: T) => void) | undefined) => void;
    set: (this: void, value: T) => void;
    subscribe(this: void, run: import("svelte/store").Subscriber<T>, invalidate?: import("svelte/store").Invalidator<T> | undefined): import("svelte/store").Unsubscriber;
    get: () => T;
    destroy?: (() => void) | undefined;
};