@drtrt/give-svelte-store-previous-behaviour / WritableWithPrevious
Name |
---|
T |
-
Writable
<T
> -
↳
WritableWithPrevious
• previousValueStore: Readable
<undefined
| T
>
ReadableWithPrevious.previousValueStore
src/WritableWithPrevious.ts:12
• subscribe: (this
: void
, run
: SubscriberWithPrevious
<T
>, invalidate?
: Invalidator
<T
>) => Unsubscriber
▸ (this
, run
, invalidate?
): Unsubscriber
Name | Type |
---|---|
this |
void |
run |
SubscriberWithPrevious <T > |
invalidate? |
Invalidator <T > |
Unsubscriber
ReadableWithPrevious.subscribe
▸ set(this
, value
): void
Set value and inform subscribers.
Name | Type | Description |
---|---|---|
this |
void |
- |
value |
T |
to set |
void
Writable.set
node_modules/svelte/types/index.d.ts:1628
▸ update(this
, updater
): void
Update value using callback and inform subscribers.
Name | Type | Description |
---|---|---|
this |
void |
- |
updater |
Updater <T > |
callback |
void
Writable.update
node_modules/svelte/types/index.d.ts:1634