@airma/react-effect
Advanced tools
Comparing version 18.4.7 to 18.4.8
@@ -312,6 +312,8 @@ import { ModelKeys, ModelKey, AirReducer } from '@airma/react-state'; | ||
declare type ResponseOption = { watchOnly?: boolean }; | ||
export declare const useResponse: { | ||
<T extends SessionState>( | ||
process: (state: ImportantVariable<T>) => any, | ||
sessionState: T | ||
sessionState: T | [T, ResponseOption?] | ||
): void; | ||
@@ -328,3 +330,3 @@ /** | ||
) => any, | ||
sessionState: T | ||
sessionState: T | [T, ResponseOption?] | ||
) => void; | ||
@@ -338,3 +340,3 @@ /** | ||
process: (error: unknown, sessionState: ImportantVariable<T>) => any, | ||
sessionState: T | ||
sessionState: T | [T, ResponseOption?] | ||
) => void; | ||
@@ -346,7 +348,7 @@ useSuccess: <T extends SessionState>( | ||
) => any, | ||
sessionState: T | ||
sessionState: T | [T, ResponseOption?] | ||
) => void; | ||
useFailure: <T extends SessionState>( | ||
process: (error: unknown, sessionState: ImportantVariable<T>) => any, | ||
sessionState: T | ||
sessionState: T | [T, ResponseOption?] | ||
) => void; | ||
@@ -353,0 +355,0 @@ }; |
{ | ||
"private": false, | ||
"name": "@airma/react-effect", | ||
"version": "18.4.7", | ||
"version": "18.4.8", | ||
"description": "This is a react async state management tool", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
67972
542