refactor: refine type definitions
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Responses.ts
index dbeb1e3ffd556d00e8cf9d3614ece82c00f765bc..51d6ad4444683a011aa62b0aaf0f317558dcf898 100644 (file)
@@ -8,29 +8,29 @@ import type { EmptyObject } from '../../EmptyObject.js'
 import type { JsonObject } from '../../JsonType.js'
 import type { RegistrationStatusEnumType } from '../Common.js'
 
-export type OCPP20BootNotificationResponse = {
+export interface OCPP20BootNotificationResponse extends JsonObject {
   currentTime: Date
   status: RegistrationStatusEnumType
   interval: number
   statusInfo?: StatusInfoType
-} & JsonObject
+}
 
-export type OCPP20HeartbeatResponse = {
+export interface OCPP20HeartbeatResponse extends JsonObject {
   currentTime: Date
-} & JsonObject
+}
 
-export type OCPP20ClearCacheResponse = {
+export interface OCPP20ClearCacheResponse extends JsonObject {
   status: GenericStatusEnumType
   statusInfo?: StatusInfoType
-} & JsonObject
+}
 
 export type OCPP20StatusNotificationResponse = EmptyObject
 
-export type OCPP20SetVariablesResponse = {
+export interface OCPP20SetVariablesResponse extends JsonObject {
   setVariableResult: OCPP20SetVariableResultType[]
-} & JsonObject
+}
 
-export type OCPP20InstallCertificateResponse = {
+export interface OCPP20InstallCertificateResponse extends JsonObject {
   status: InstallCertificateStatusEnumType
   statusInfo?: StatusInfoType
-} & JsonObject
+}