const msgpack = require ( 'msgpack-lite' ) ; export const serializeBinary = < T > ( object ) : Buffer => msgpack . encode ( object ) ; export const deserializeBinary = ( buffer ) => msgpack . decode ( buffer ) ;