key: ConfigurationKeyType,
value: string,
caseInsensitive = false
-): void => {
+): ConfigurationKey | undefined => {
const keyFound = getConfigurationKey(chargingStation, key, caseInsensitive)
if (keyFound != null) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
{ key, value }
)
}
+ return keyFound
}
export const deleteConfigurationKey = (