Typed validation parameter
MODIFY
src/server/rest/v1/validator/ChargingStationValidator.ts
src/server/rest/v1/validator/ChargingStationValidator.ts
@@ -143,7 +143,7 @@ export default class ChargingStationValidator extends SchemaValidator {
return data;
}
- public validateChargingStationNotificationsGetReq(data: any): HttpDatabaseRequest {
+ public validateChargingStationNotificationsGetReq(data: HttpDatabaseRequest): HttpDatabaseRequest {
// Validate schema
this.validate(this.chargingStationNotificationsGet, data);
return data;

Typed validation parameter