X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPServiceUtils.ts;h=96b34218bae93f78a595545a29b2969fc91000fc;hb=03ebf4c1db6ba11903b42e56692ed3d8538ba1d3;hp=25d6b1e72d451ed64acdd9d93280c77bd4917036;hpb=06ad945f66c591d91a4c0062e9f39e007b05ba83;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPServiceUtils.ts b/src/charging-station/ocpp/OCPPServiceUtils.ts index 25d6b1e7..96b34218 100644 --- a/src/charging-station/ocpp/OCPPServiceUtils.ts +++ b/src/charging-station/ocpp/OCPPServiceUtils.ts @@ -1,4 +1,4 @@ -import { DefinedError, ErrorObject } from 'ajv'; +import type { DefinedError, ErrorObject } from 'ajv'; import { ErrorType } from '../../types/ocpp/ErrorType'; @@ -7,7 +7,7 @@ export class OCPPServiceUtils { // This is intentional } - public static AjvErrorsToErrorType(errors: ErrorObject[]): ErrorType { + public static ajvErrorsToErrorType(errors: ErrorObject[]): ErrorType { for (const error of errors as DefinedError[]) { switch (error.keyword) { case 'type':