mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 06:50:51 +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.UniqueOption;
|
||||
|
||||
export type DateValue = globalThis.Date;
|
||||
export type DateValue = globalThis.Date | string;
|
||||
|
||||
export type GetDateValue<T extends Attribute.Attribute> = T extends Date ? DateValue : never;
|
||||
|
Loading…
x
Reference in New Issue
Block a user