@tracktor/shared-module 1.0.8 → 1.0.10
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/CHANGELOG.md +2 -2
- package/dist/{en-EkCf5JOJ.js → en-E8ST0UOq.js} +1 -1
- package/dist/{fr-ADtvg3rE.js → fr-Iii0rxc-.js} +1 -1
- package/dist/hooks/useResponseError/useResponseError.d.ts +1 -8
- package/dist/main-Kjk_MFFV.js +944 -0
- package/dist/main.js +1 -1
- package/dist/main.umd.cjs +9 -9
- package/package.json +1 -1
- package/dist/main-DWJHWlv8.js +0 -960
package/CHANGELOG.md
CHANGED
|
@@ -11,17 +11,10 @@ export interface ResponseError {
|
|
|
11
11
|
}[];
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
export interface useResponseErrorParams {
|
|
15
|
-
/**
|
|
16
|
-
* Translation key returned for the unknown error
|
|
17
|
-
*/
|
|
18
|
-
unknownErrorTranslationKey?: string;
|
|
19
|
-
}
|
|
20
14
|
/**
|
|
21
15
|
* This hook is used to print error messages from the API
|
|
22
|
-
* @param params
|
|
23
16
|
*/
|
|
24
|
-
export declare const useResponseError: <T = ResponseError>(
|
|
17
|
+
export declare const useResponseError: <T = ResponseError>() => {
|
|
25
18
|
getErrorCode: (error?: any) => string;
|
|
26
19
|
printError: (error?: any) => string;
|
|
27
20
|
};
|