fix: ensure error at adding charging stations not stop further
[e-mobility-charging-stations-simulator.git] / src / types / Error.ts
index b27f24578fa4829dc27e9eb7468f7217c3c6090b..34bad1ad4eabbf612fa2c27398def5fea4434f73 100644 (file)
@@ -1,5 +1,7 @@
-export interface HandleErrorParams<T> {
-  throwError?: boolean;
-  consoleOut?: boolean;
-  errorResponse?: T;
+import type { JsonType } from './JsonType.js'
+
+export interface HandleErrorParams<T extends JsonType> {
+  throwError?: boolean
+  consoleOut?: boolean
+  errorResponse?: T
 }