Fireboltofdeath / flamework-binary-serializer

A blazing fast binary serializer, or something
6 stars 0 forks source link

Fix bitfields when optional fields are present #9

Closed Fireboltofdeath closed 4 months ago

Fireboltofdeath commented 4 months ago

TypeScript will leak undefined into the keys of objects under certain circumstances and this accounts for that in the bitfield types

This does not account for an already broken object being passed into the types, it only prevents the serializer's types from causing the breakage.