From 98b45d63fdf236a4794d2498b14f3f3e0529738e Mon Sep 17 00:00:00 2001 From: Mikita Kamkou Date: Tue, 30 Jan 2024 13:24:34 +0100 Subject: [PATCH] Updated Type of the DatePartsRuleFunction --- src/utils/date/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/date/helpers.ts b/src/utils/date/helpers.ts index 9618fbf5..75284d1a 100755 --- a/src/utils/date/helpers.ts +++ b/src/utils/date/helpers.ts @@ -142,7 +142,7 @@ interface NumberRuleConfig { interval?: number; } -type DatePartsRuleFunction = (part: number, parts: TimeParts) => boolean; +type DatePartsRuleFunction = (part: number, parts: DateParts) => boolean; type DatePartsRule = | number