typedlua
typedlua copied to clipboard
table types do not accept userdata as keys
trafficstars
I tried to declare a table of type { file : {string} } and got a syntax error.
I tried to declare a table of type { file : {string} } and got a syntax error.
This table type is not valid in Typed Lua. The type of the keys in a table type can only be literal types, base types, or the top type value.
In this case, you need to use { value : {string} }.