red-blox / zap

A lightning fast networking solution for roblox.
https://zap.redblox.dev
MIT License
89 stars 14 forks source link

Generate TypeScript arrays instead of huge tuples #95

Closed Ketasaja closed 2 months ago

Ketasaja commented 2 months ago

Closes #69.

This doesn't have special behavior for nested types like u8[10][10][10][10] to keep this uncontroversial.

Constant const TUPLE_BECOMES_ARRAY_THRESHOLD: i8 = 11; specifies the threshold. Alternatively there could be a configuration option for this.

sasial-dev commented 2 months ago

After doing those commits please also fix the merge conflicts.