Type aliases
ActionTypes
Action
Types: keyof typeof Action
DeepPartial
Type parameters
Dispatch
Dispatch<S, U>: (state: S, status?: U) => S
Type parameters
Type declaration
-
- (state: S, status?: U): S
-
Parameters
-
state: S
-
Optional status: U
Returns S
KeyOf
KeyOf<T>: Extract<keyof T, string>
Type parameters
Middleware
Middleware
: <S, U>
(store
: IRestash<S, U>) => (next
: Dispatch<S, U>) => (payload
: any) => S
Type declaration
-
-
Type parameters
Parameters
Returns (next: Dispatch<S, U>) => (payload: any) => S
-
- (next: Dispatch<S, U>): (payload: any) => S
-
Parameters
Returns (payload: any) => S
MiddlewareDispatch
MiddlewareDispatch: <S, U>(state: S, status?: U) => S
Type declaration
-
- <S, U>(state: S, status?: U): S
-
Type parameters
Parameters
-
state: S
-
Optional status: U
Returns S
Path
Path<T>: ParsePathKey<T> extends string | keyof T ? ParsePathKey<T> : keyof T
Type parameters
PathValue
Path
Value<T, P>: P extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? Rest extends Path<T[Key]> ? PathValue<T[Key], Rest> : never : never : P extends keyof T ? T[P] : never
Type parameters
RestashHook
Restash
Hook<S, U, D>: [S, D, IRestash<S, U, D>]
Type parameters
Default dispactch type/interface.