Josué David Briceño Urquijo
Josué David Briceño Urquijo
Add unions to the `AnySchemaPath` to allow autocomplete and enhance follow-up of that type by enforcing the use of a `.` or a `[` (which are the key selectors in...
Having the following schemas, entity and table: ```ts const dateSchema = s .any() .castAs() .default(() => new Date()) .transform({ encode: (value) => value.toISOString(), decode: (value: string) => new Date(value), });...
Reading the documentation I found that `anyOf` would suite my use case. I tried to use `string().const("something")` like showed in the first example of the [documentation](https://www.dynamodbtoolbox.com/docs/schemas/anyOf). But, I got this...