A bus that parses a date in any way JS natively can.
Checks for Invalid Date objects and rejects them.
import * as io from "@prelude-io/core";console.log(await io.date.deserialize("2023-01-01")); // => IORight containing `Date` objectconsole.log(await io.number.deserialize("Wobbly Bobble")); // => IOLeft containing errors Copy
import * as io from "@prelude-io/core";console.log(await io.date.deserialize("2023-01-01")); // => IORight containing `Date` objectconsole.log(await io.number.deserialize("Wobbly Bobble")); // => IOLeft containing errors
Generated using TypeDoc
A bus that parses a date in any way JS natively can.
Checks for Invalid Date objects and rejects them.
Example