refactor: cleanup default params in error handlers
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
index ac8a094508bfa15fe57eac1a2a1bdda844c1f145..f1cd34ba3f8ec0cd79b70de1d8378fb409d7e511 100644 (file)
@@ -1,3 +1,4 @@
+import type { JsonObject } from '../JsonType.js'
 import {
   OCPP16StandardParametersKey,
   OCPP16SupportedFeatureProfiles,
@@ -8,7 +9,6 @@ import {
   OCPP20RequiredVariableName,
   OCPP20VendorVariableName
 } from './2.0/Variables.js'
-import type { JsonObject } from '../JsonType.js'
 
 export const StandardParametersKey = {
   ...OCPP16StandardParametersKey,
@@ -44,8 +44,8 @@ export enum ConnectorPhaseRotation {
 
 export type ConfigurationKeyType = string | StandardParametersKey | VendorParametersKey
 
-export type OCPPConfigurationKey = {
+export interface OCPPConfigurationKey extends JsonObject {
   key: ConfigurationKeyType
   readonly: boolean
   value?: string
-} & JsonObject
+}