i was creating custom codec and i came across a problem related to typescript compilation error when following this Codec Architecture documentation page it is mentioned that createDecoderCore should be configured with onCreate, onAppend, and onUpdate
createDecoder() {
const core = createDecoderCore({
onCreate: (msg) => deserialize(msg.data),
onAppend: (msg) => deserialize(msg.data),
onUpdate: (msg) => deserialize(msg.data),
})
}
but when i was writing these , it gave me type error saying: Object literal may only specify known properties, and 'onCreate' does not exist in type 'DecoderCoreHooks<unknown, unknown>'.
then i checked the types for DecoderCoreHooks it shows to use buildStartEvents , buildDeltaEvent, and so on.. it contradicts with the previous one or is it renamed and the doc is not updated?
i was creating custom codec and i came across a problem related to typescript compilation error when following this Codec Architecture documentation page it is mentioned that
createDecoderCoreshould be configured withonCreate,onAppend, andonUpdate