extend DateValue typings to include string

This commit is contained in:
Luiz Pelegrini 2023-06-21 13:23:21 +08:00 committed by Luiz Guilherme Pelegrini
parent ecb4592daf
commit e65065676a

View File

@ -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;