Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
super(message)
this.code = code
super(message)
this.code = code
- this.command = command ?? (Constants.UNKNOWN_COMMAND as RequestCommand | IncomingRequestCommand)
+ this.command = command ?? Constants.UNKNOWN_COMMAND
this.details = details
}
}
this.details = details
}
}
type AutomaticTransactionGeneratorConfiguration,
type ChargingStationInfo,
CurrentType,
type AutomaticTransactionGeneratorConfiguration,
type ChargingStationInfo,
CurrentType,
+ type IncomingRequestCommand,
VendorParametersKey
} from '../types/index.js'
VendorParametersKey
} from '../types/index.js'
static readonly DEFAULT_UI_SERVER_HOST = 'localhost'
static readonly DEFAULT_UI_SERVER_PORT = 8080
static readonly DEFAULT_UI_SERVER_HOST = 'localhost'
static readonly DEFAULT_UI_SERVER_PORT = 8080
- static readonly UNKNOWN_COMMAND = 'unknown command'
+ static readonly UNKNOWN_COMMAND = 'unknown command' as RequestCommand | IncomingRequestCommand
static readonly MAX_RANDOM_INTEGER = 281474976710654
static readonly MAX_RANDOM_INTEGER = 281474976710654