From e65065676a9c56a0a224b6312390c0dba59a033a Mon Sep 17 00:00:00 2001 From: Luiz Pelegrini Date: Wed, 21 Jun 2023 13:23:21 +0800 Subject: [PATCH] extend DateValue typings to include string --- packages/core/strapi/lib/types/core/attributes/date.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/strapi/lib/types/core/attributes/date.d.ts b/packages/core/strapi/lib/types/core/attributes/date.d.ts index 310242c2fd..f69220c1d4 100644 --- a/packages/core/strapi/lib/types/core/attributes/date.d.ts +++ b/packages/core/strapi/lib/types/core/attributes/date.d.ts @@ -8,6 +8,6 @@ export type Date = Attribute.OfType<'date'> & Attribute.RequiredOption & Attribute.UniqueOption; -export type DateValue = globalThis.Date; +export type DateValue = globalThis.Date | string; export type GetDateValue = T extends Date ? DateValue : never;