From a0f6a472bec8c68962405941dade32df096b8c3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 12 Dec 2023 00:17:16 +0100 Subject: [PATCH] refactor: fix type casting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1