Buckets:
| import type { ExtractState, Mutate, StateCreator, StoreApi, StoreMutatorIdentifier } from 'zustand/vanilla'; | |
| type ReadonlyStoreApi<T> = Pick<StoreApi<T>, 'getState' | 'getInitialState' | 'subscribe'>; | |
| export declare function useStore<S extends ReadonlyStoreApi<unknown>>(api: S): ExtractState<S>; | |
| export declare function useStore<S extends ReadonlyStoreApi<unknown>, U>(api: S, selector: (state: ExtractState<S>) => U): U; | |
| export type UseBoundStore<S extends ReadonlyStoreApi<unknown>> = { | |
| (): ExtractState<S>; | |
| <U>(selector: (state: ExtractState<S>) => U): U; | |
| } & S; | |
| type Create = { | |
| <T, Mos extends [StoreMutatorIdentifier, unknown][] = []>(initializer: StateCreator<T, [], Mos>): UseBoundStore<Mutate<StoreApi<T>, Mos>>; | |
| <T>(): <Mos extends [StoreMutatorIdentifier, unknown][] = []>(initializer: StateCreator<T, [], Mos>) => UseBoundStore<Mutate<StoreApi<T>, Mos>>; | |
| }; | |
| export declare const create: Create; | |
| export {}; | |
Xet Storage Details
- Size:
- 934 Bytes
- Xet hash:
- dcaa6ddec0b3e87b2de99c32691884f59b6d3e81cda7dac6e14fadc55845972a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.