Don't give binary serialization properties optional types. #816
Labels
effort: Moderate
Will take a good amount of time and experience with the codebase, but feasible.
topic: Binary Serialization
Related to serializing/deserializing objects using util/binarySerialization.js
Milestone
Binary serialization automatically fills in missing parameters with default values, i.e.
StorageType.UINT16
becomes0
etc.So the types of the first argument of
objectToBinary()
are all optional.But in practice this can be pretty annoying because you don't get any early warnings when you forgot to provide one of the messages.
The text was updated successfully, but these errors were encountered: