Switch rollup bundler TS plugin to rollup-plugin-ts
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPError.ts
index 9c6f825a6526a3f903c4b2a70e230b6fb2de3103..a4b31a363d488710ebd159ffa66691a2435c6fec 100644 (file)
@@ -5,9 +5,9 @@ import { ErrorType } from '../../types/ocpp/ErrorType';
 export default class OCPPError extends Error {
   code: ErrorType | IncomingRequestCommand;
   command?: RequestCommand | IncomingRequestCommand;
-  details?: unknown;
+  details?: Record<string, unknown>;
 
-  constructor(code: ErrorType | IncomingRequestCommand, message: string, command?: RequestCommand | IncomingRequestCommand, details?: unknown) {
+  constructor(code: ErrorType | IncomingRequestCommand, message: string, command?: RequestCommand | IncomingRequestCommand, details?: Record<string, unknown>) {
     super(message);
 
     this.name = new.target.name;