import { type Serializer } from "https://deno.land/x/cav@0.0.24/browser.ts";
Interface for serializing and deserializing arbitrary non-JSON primitive values into JSON.
Methods
Transforms the value into its JSON-compatible format. The value returned by this function will be re-serialized, i.e. not every nested value needs to be JSON compatible.
Transforms serialized values into their original input. Any nested
serialized values will still be serialized when this function is called
initially. Use the whenDone
registration function to finish setting up
the resulting output only when each of the nested values is finished
deserializing, i.e. "ready".