@cubejs-client/react 0.34.37 → 0.34.46

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.
Files changed (2) hide show
  1. package/index.d.ts +5 -3
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -37,7 +37,7 @@ declare module '@cubejs-client/react' {
37
37
  type CubeProviderOptions = {
38
38
  castNumerics?: boolean;
39
39
  }
40
-
40
+
41
41
  type CubeProviderProps = {
42
42
  cubejsApi: CubejsApi | null;
43
43
  options?: CubeProviderOptions;
@@ -450,6 +450,7 @@ declare module '@cubejs-client/react' {
450
450
  query: TQuery,
451
451
  options?: UseCubeQueryOptions,
452
452
  ): UseCubeQueryResult<
453
+ TQuery,
453
454
  unknown extends TData
454
455
  ? QueryRecordType<TQuery>
455
456
  : TData
@@ -461,7 +462,7 @@ declare module '@cubejs-client/react' {
461
462
  * A `CubejsApi` instance to use. Taken from the context if the param is not passed
462
463
  */
463
464
  cubejsApi?: CubejsApi;
464
-
465
+
465
466
  /**
466
467
  * A `CubejsApi` instance to use. Taken from the context if the param is not passed
467
468
  */
@@ -484,11 +485,12 @@ declare module '@cubejs-client/react' {
484
485
  castNumerics?: boolean;
485
486
  };
486
487
 
487
- type UseCubeQueryResult<TData> = {
488
+ type UseCubeQueryResult<TQuery, TData> = {
488
489
  error: Error | null;
489
490
  isLoading: boolean;
490
491
  resultSet: ResultSet<TData> | null;
491
492
  progress: ProgressResponse;
493
+ previousQuery: TQuery;
492
494
  refetch: () => Promise<void>;
493
495
  };
494
496
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-client/react",
3
- "version": "0.34.37",
3
+ "version": "0.34.46",
4
4
  "author": "Cube Dev, Inc.",
5
5
  "license": "MIT",
6
6
  "engines": {},
@@ -42,5 +42,5 @@
42
42
  "peerDependencies": {
43
43
  "react": ">=16.10.2"
44
44
  },
45
- "gitHead": "595c23dc095825180036b2c3950671d6a75065eb"
45
+ "gitHead": "ff182e4d39c1228050f295ee11790a4164e83121"
46
46
  }