@drtrt/give-svelte-store-previous-behaviour
Ƭ SubscriberWithPrevious<T
>: (value
: T
, previousValue
: T
| undefined
) => void
Name |
---|
T |
▸ (value
, previousValue
): void
Name | Type |
---|---|
value |
T |
previousValue |
T | undefined |
void
src/SubscriberWithPrevious.ts:1
▸ getPrevious<T
>(store
): undefined
| T
Name |
---|
T |
Name | Type |
---|---|
store |
ReadableWithPrevious <T > |
undefined
| T
▸ giveSvelteStorePreviousBehaviour<T
>(store
): WritableWithPrevious
<T
>
Name |
---|
T |
Name | Type |
---|---|
store |
Writable <T > |
src/giveSvelteStorePreviousBehaviour.ts:7
▸ giveSvelteStorePreviousBehaviour<T
>(store
): ReadableWithPrevious
<T
>
Name |
---|
T |
Name | Type |
---|---|
store |
Readable <T > |