Suppose I want an optional date as an argument. The code
#import "@preview/valkyrie:0.2.1" as z
#let schema = z.dictionary((
date: z.date(optional: true, pre-transform: z.coerce.date)
))
#z.parse((date: none), schema)
results in the error Unknown date of type 'none' accepts: datetime, str, int, and object
Suppose I want an optional date as an argument. The code
results in the error
Unknown date of type 'none' accepts: datetime, str, int, and object