type BroadcastChannelRequestPayload,
type ChargingStationOptions,
ConfigurationSection,
+ type JsonObject,
type JsonType,
ProcedureName,
type ProtocolRequest,
try {
return {
status: ResponseStatus.SUCCESS,
- state: Bootstrap.getInstance().getState()
+ state: Bootstrap.getInstance().getState() as unknown as JsonObject
} satisfies ResponsePayload
} catch (error) {
return {
if (value instanceof Map) {
switch (mapFormat) {
case MapStringifyFormat.object:
- return { ...Object.fromEntries<Map<string, T>>(value.entries()) }
+ return { ...Object.fromEntries<Map<string, Record<string, unknown>>>(value.entries()) }
case MapStringifyFormat.array:
default:
return [...value]
}
} else if (value instanceof Set) {
- return [...value] as unknown[]
+ return [...value] as JsonType[]
}
return value
},