Buckets:
| import type { StateCreator, StoreMutatorIdentifier } from 'zustand/vanilla'; | |
| type Write<T, U> = Omit<T, keyof U> & U; | |
| type Action = { | |
| type: string; | |
| }; | |
| type StoreRedux<A> = { | |
| dispatch: (a: A) => A; | |
| dispatchFromDevtools: true; | |
| }; | |
| type ReduxState<A> = { | |
| dispatch: StoreRedux<A>['dispatch']; | |
| }; | |
| type WithRedux<S, A> = Write<S, StoreRedux<A>>; | |
| type Redux = <T, A extends Action, Cms extends [StoreMutatorIdentifier, unknown][] = []>(reducer: (state: T, action: A) => T, initialState: T) => StateCreator<Write<T, ReduxState<A>>, Cms, [['zustand/redux', A]]>; | |
| declare module '../vanilla' { | |
| interface StoreMutators<S, A> { | |
| 'zustand/redux': WithRedux<S, A>; | |
| } | |
| } | |
| export declare const redux: Redux; | |
| export {}; | |
Xet Storage Details
- Size:
- 731 Bytes
- Xet hash:
- 17536d2a54872c7507fedb4d09b2ca0efa6e9a7d6c9f44c2573af154552a1533
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.