X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils%2FUtils.ts;h=366ccf98a96d182f55c67b9c2448d076be94e674;hb=6a4032b5d8f3cbaa18d3beddcdfe9d335c1cba90;hp=d99dcc3a0da29e98f11882cb0b4d3726bbff4133;hpb=a78c196b969380d9d968c94fab567b0be6828f69;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index d99dcc3a..366ccf98 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -79,7 +79,7 @@ export const convertToDate = ( value: Date | string | number | null | undefined, ): Date | null | undefined => { if (isNullOrUndefined(value)) { - return value as undefined; + return value as null | undefined; } if (isDate(value)) { return value;