Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 333 Bytes

File metadata and controls

22 lines (14 loc) · 333 Bytes

addType( type )

Adds a custom type that will be used when patching or when encode/decode.

Arguments

type Object

Must be an object that expose two or three functions. patch is optional

addType({ 
    encode: ()=>{},
    decode: ()=>{},
    patch: ()=>{}
})

Examples

To do...