@intrig/plugin-react 0.0.15-23 → 0.0.15-25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -855,7 +855,7 @@ export interface ContextType {
|
|
|
855
855
|
filteredState: GlobalState;
|
|
856
856
|
dispatch: Dispatch<NetworkAction<unknown>>;
|
|
857
857
|
configs: ${configType};
|
|
858
|
-
execute: <T>(request: RequestType, dispatch: (state: NetworkState<T>) => void, schema: SchemaOf<T> | undefined, errorSchema: SchemaOf<
|
|
858
|
+
execute: <T>(request: RequestType, dispatch: (state: NetworkState<T>) => void, schema: SchemaOf<T> | undefined, errorSchema: SchemaOf<any> | undefined) => Promise<void>;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
/**
|
|
@@ -1684,7 +1684,7 @@ export function useTransitionCall<T>({
|
|
|
1684
1684
|
errorSchema,
|
|
1685
1685
|
}: {
|
|
1686
1686
|
schema?: SchemaOf<T>;
|
|
1687
|
-
errorSchema?: SchemaOf<
|
|
1687
|
+
errorSchema?: SchemaOf<any>;
|
|
1688
1688
|
}): [(request: RequestType) => Promise<T>, () => void] {
|
|
1689
1689
|
const ctx = useContext(Context);
|
|
1690
1690
|
const controller = useRef<AbortController | undefined>(undefined);
|
package/dist/index.js
CHANGED
|
@@ -831,7 +831,7 @@ export interface ContextType {
|
|
|
831
831
|
filteredState: GlobalState;
|
|
832
832
|
dispatch: Dispatch<NetworkAction<unknown>>;
|
|
833
833
|
configs: ${configType};
|
|
834
|
-
execute: <T>(request: RequestType, dispatch: (state: NetworkState<T>) => void, schema: SchemaOf<T> | undefined, errorSchema: SchemaOf<
|
|
834
|
+
execute: <T>(request: RequestType, dispatch: (state: NetworkState<T>) => void, schema: SchemaOf<T> | undefined, errorSchema: SchemaOf<any> | undefined) => Promise<void>;
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
/**
|
|
@@ -1660,7 +1660,7 @@ export function useTransitionCall<T>({
|
|
|
1660
1660
|
errorSchema,
|
|
1661
1661
|
}: {
|
|
1662
1662
|
schema?: SchemaOf<T>;
|
|
1663
|
-
errorSchema?: SchemaOf<
|
|
1663
|
+
errorSchema?: SchemaOf<any>;
|
|
1664
1664
|
}): [(request: RequestType) => Promise<T>, () => void] {
|
|
1665
1665
|
const ctx = useContext(Context);
|
|
1666
1666
|
const controller = useRef<AbortController | undefined>(undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intrig/plugin-react",
|
|
3
|
-
"version": "0.0.15-
|
|
3
|
+
"version": "0.0.15-25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@intrig/plugin-sdk": "^0.0.15-
|
|
18
|
+
"@intrig/plugin-sdk": "^0.0.15-25",
|
|
19
19
|
"@swc/helpers": "~0.5.11",
|
|
20
20
|
"fs-extra": "^11.2.0"
|
|
21
21
|
},
|