@hapl/api-queries 0.2.44--canary.167.bdd65de.0 → 0.2.44--canary.167.82fc91c.0

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.
@@ -1,7 +1,8 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
+ import { User } from '../../../types';
2
3
  declare type SuccessData = {
3
4
  success: true;
4
- data: string;
5
+ data: User;
5
6
  };
6
7
  declare type ErrorData = {
7
8
  success: false;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.44--canary.167.bdd65de.0",
2
+ "version": "0.2.44--canary.167.82fc91c.0",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -1,6 +1,7 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosResponseTransformer } from 'axios';
2
+ import { User } from '../../../types';
2
3
 
3
- type SuccessData = { success: true; data: string };
4
+ type SuccessData = { success: true; data: User };
4
5
  type ErrorData = { success: false; data: { error: string } };
5
6
 
6
7
  type ResultData = SuccessData['data'];