Update src/charging-station/ChargingStation.ts
[e-mobility-charging-stations-simulator.git] / src / types / Error.ts
index c599438ce3554f6c4858d11e14508b0d48ff3199..885edfdb3232650234fe7099c689feef485bd290 100644 (file)
@@ -1,4 +1,7 @@
-export interface HandleErrorParams {
+import type { JsonType } from './JsonType';
+
+export type HandleErrorParams<T extends JsonType> = {
   throwError?: boolean;
   consoleOut?: boolean;
-}
+  errorResponse?: T;
+};