Buckets:
ktongue/docker_container / simsite /frontend /node_modules /zustand /middleware /subscribeWithSelector.d.ts
| import type { StateCreator, StoreMutatorIdentifier } from 'zustand/vanilla'; | |
| type SubscribeWithSelector = <T, Mps extends [StoreMutatorIdentifier, unknown][] = [], Mcs extends [StoreMutatorIdentifier, unknown][] = []>(initializer: StateCreator<T, [ | |
| ...Mps, | |
| ['zustand/subscribeWithSelector', never] | |
| ], Mcs>) => StateCreator<T, Mps, [['zustand/subscribeWithSelector', never], ...Mcs]>; | |
| type Write<T, U> = Omit<T, keyof U> & U; | |
| type WithSelectorSubscribe<S> = S extends { | |
| getState: () => infer T; | |
| } ? Write<S, StoreSubscribeWithSelector<T>> : never; | |
| declare module '../vanilla' { | |
| interface StoreMutators<S, A> { | |
| ['zustand/subscribeWithSelector']: WithSelectorSubscribe<S>; | |
| } | |
| } | |
| type StoreSubscribeWithSelector<T> = { | |
| subscribe: { | |
| (listener: (selectedState: T, previousSelectedState: T) => void): () => void; | |
| <U>(selector: (state: T) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: { | |
| equalityFn?: (a: U, b: U) => boolean; | |
| fireImmediately?: boolean; | |
| }): () => void; | |
| }; | |
| }; | |
| export declare const subscribeWithSelector: SubscribeWithSelector; | |
| export {}; | |
Xet Storage Details
- Size:
- 1.16 kB
- Xet hash:
- 81012ba3d1ff12115957b5c1c4cef3000d4504c0517f66a4101732f3f03d680f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.