Open ecamellini opened 5 years ago
DateFromISOString
implementation looks identical, so I would just pull it in and use it.
https://github.com/gcanti/io-ts-types/blob/master/src/Date/DateFromISOString.ts
@ecamellini LocalDate
and LocalDateTime
should use https://github.com/buildo/local-date though
requirements
At the moment, to convert
Instant
,LocalDateTime
, etc into JSDate
s, we need to manually map them to Date in the prelude in metarpheus config and to manually define and include also aDateFromString
io-ts
type: we could include all this in metarpehus:DateFromString
(or use some already existing type likeDateFromISOString
Date
andDateFromString
specs
At the moment, this is what we add to the prelude in projects:
misc
{optional: other useful info}