rendajs / Renda

A modern rendering engine for the web.
https://rendajs.org
MIT License
10 stars 4 forks source link

Support for primitive types in binary serialization union arrays #275

Open jespertheend opened 1 year ago

jespertheend commented 1 year ago

At the moment, only objects are supported in union arrays. However, we could possibly support primitive types as long as the types in the array are sufficiently different. For instance StorageType.STRING and StorageType.INT32.

jespertheend commented 3 months ago

Also doing something like

optionalType: [StorageType.UNION_ARRAY, StorageType.NULL, {myData: StorageType.STRING}

could be useful