zustand-fetching
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -14,4 +14,5 @@ import { StoreApi } from "zustand/esm"; | ||
} | ||
type UseRequestType<Payload, Result> = <U = ILeitenLoading<ILeitenGroupRequestParams<Payload>, Result>>(key: string, selector?: (state: ILeitenLoading<ILeitenGroupRequestParams<Payload>, Result>) => U, equals?: (a: U, b: U) => boolean) => U; | ||
type UseGroupRequestType<Payload, Result> = <U = ILeitenLoading<ILeitenGroupRequestParams<Payload>, Result>>(selector?: (state: Record<string, ILeitenLoading<ILeitenGroupRequestParams<Payload>, Result>>) => U, equals?: (a: U, b: U) => boolean) => U; | ||
type LeitenState<Payload, Result> = ILeitenLoading<ILeitenGroupRequestParams<Payload>, Result>; | ||
type UseRequestType<Payload, Result> = <U = LeitenState<Payload, Result>>(key: string, selector?: (state: LeitenState<Payload, Result>) => U, equals?: (a: U, b: U) => boolean) => U; | ||
type UseGroupRequestType<Payload, Result> = <U = LeitenState<Payload, Result>>(selector?: (state: Record<string, LeitenState<Payload, Result>>) => U, equals?: (a: U, b: U) => boolean) => U; | ||
export type ILeitenGroupRequest<Payload, Result> = { | ||
@@ -18,0 +19,0 @@ clear: (key?: string) => void; |
{ | ||
"name": "zustand-fetching", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Zustand fetching helpers", |
1786
88068