date: Bus<unknown, Date>

A bus that parses a date in any way JS natively can.

Checks for Invalid Date objects and rejects them.

Example

import * as io from "@prelude-io/core";

console.log(await io.date.deserialize("2023-01-01")); // => IORight containing `Date` object
console.log(await io.number.deserialize("Wobbly Bobble")); // => IOLeft containing errors

Generated using TypeDoc