diff --git a/packages/core/src/common/validation.ts b/packages/core/src/common/validation.ts index 1120a62..eba4b29 100644 --- a/packages/core/src/common/validation.ts +++ b/packages/core/src/common/validation.ts @@ -1,13 +1 @@ -import * as v from 'valibot'; export * from 'valibot'; - -export const datelike = () => v.transform( - v.union([ - v.string([v.isoDate()]), - v.string([v.isoDateTime()]), - v.number(), - v.date() - ]), - (value) => new Date(value).toISOString(), - v.string([v.isoTimestamp()]) -);