@awarevue/api-types 1.0.22 → 1.0.23
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/error.d.ts +7 -8
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/error.d.ts
CHANGED
|
@@ -625,13 +625,12 @@ type AppErrorMetadataSchemaMap = typeof errorMetadataSchemas;
|
|
|
625
625
|
export type AppErrorMetadataMap = {
|
|
626
626
|
[K in keyof AppErrorMetadataSchemaMap]: z.infer<AppErrorMetadataSchemaMap[K]>;
|
|
627
627
|
};
|
|
628
|
-
export type ErrorResponse
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
[K in AppErrorCode]: ErrorResponse<K>;
|
|
628
|
+
export type ErrorResponse = {
|
|
629
|
+
[K in AppErrorCode]: {
|
|
630
|
+
code: K;
|
|
631
|
+
message: string;
|
|
632
|
+
metadata: AppErrorMetadataMap[K];
|
|
633
|
+
};
|
|
635
634
|
}[AppErrorCode];
|
|
636
|
-
export declare function isErrorResponse(err: unknown): err is
|
|
635
|
+
export declare function isErrorResponse(err: unknown): err is ErrorResponse;
|
|
637
636
|
export {};
|
package/dist/package.json
CHANGED