mirror of
https://github.com/strapi/strapi.git
synced 2025-09-23 15:29:27 +00:00
extend DateValue typings to include string
This commit is contained in:
parent
ecb4592daf
commit
e65065676a
@ -8,6 +8,6 @@ export type Date = Attribute.OfType<'date'> &
|
|||||||
Attribute.RequiredOption &
|
Attribute.RequiredOption &
|
||||||
Attribute.UniqueOption;
|
Attribute.UniqueOption;
|
||||||
|
|
||||||
export type DateValue = globalThis.Date;
|
export type DateValue = globalThis.Date | string;
|
||||||
|
|
||||||
export type GetDateValue<T extends Attribute.Attribute> = T extends Date ? DateValue : never;
|
export type GetDateValue<T extends Attribute.Attribute> = T extends Date ? DateValue : never;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user