@dhis2/app-service-data 3.9.2 → 3.9.4
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.
|
@@ -16,9 +16,9 @@ export interface ResolvedResourceQuery extends ResourceQuery {
|
|
|
16
16
|
}
|
|
17
17
|
export declare type Query = Record<string, ResourceQuery>;
|
|
18
18
|
export declare type QueryResult = JsonMap;
|
|
19
|
-
export interface QueryOptions {
|
|
19
|
+
export interface QueryOptions<TQueryResult = QueryResult> {
|
|
20
20
|
variables?: QueryVariables;
|
|
21
|
-
onComplete?: (data:
|
|
21
|
+
onComplete?: (data: TQueryResult) => void;
|
|
22
22
|
onError?: (error: FetchError) => void;
|
|
23
23
|
lazy?: boolean;
|
|
24
24
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Query, QueryOptions } from '../../engine';
|
|
2
2
|
import type { QueryRenderInput } from '../../types';
|
|
3
|
-
export declare const useDataQuery: <TQueryResult = import("../../engine").JsonMap>(query: Query, { onComplete: userOnSuccess, onError: userOnError, variables: initialVariables, lazy: initialLazy, }?: QueryOptions) => QueryRenderInput<TQueryResult>;
|
|
3
|
+
export declare const useDataQuery: <TQueryResult = import("../../engine").JsonMap>(query: Query, { onComplete: userOnSuccess, onError: userOnError, variables: initialVariables, lazy: initialLazy, }?: QueryOptions<TQueryResult>) => QueryRenderInput<TQueryResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2/app-service-data",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.4",
|
|
4
4
|
"main": "./build/cjs/index.js",
|
|
5
5
|
"module": "./build/es/index.js",
|
|
6
6
|
"types": "build/types/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"build/**"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@dhis2/app-service-config": "3.9.
|
|
25
|
+
"@dhis2/app-service-config": "3.9.4",
|
|
26
26
|
"@dhis2/cli-app-scripts": "^7.1.1",
|
|
27
27
|
"prop-types": "^15.7.2",
|
|
28
28
|
"react": "^16.8",
|