Type none
Information
- Used to store the
null
value. - Primarily used with the
t.or()
function, in this case the field is still required. - Use
null
when 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"});