Adds a custom type that will be used when patching or when encode/decode.
Object
Must be an object that expose two or three functions. patch
is optional.
addType({
encode: ()=>{},
decode: ()=>{},
patch: ()=>{}
})
To do...
But for now you can have a look at https://github.com/DistributedObjectProtocol/dop/tree/master/src/types