Type none
Information
- Used to store the
nullvalue. - Primarily used with the
t.or()function, in this case the field is still required. - Use
nullwhen writing a value.
Example Usage
import { Serializer, t } from "encodexx"
const serializer = new Serializer({ n: t.none, title: t.or(t.str, t.none), message: t.or(t.str, t.none),})
serializer.encode({ n: null, title: null, message: "this is my message"});