It's not really clear when defining a tuple without any name
type UserInfo = [string, number, boolean]
function getUserInfo(): UserInfo
from the lua side it looks much clear
local username, age, isRegistered = getUserInfo()
Since typescript 4 supports labeled tuple, it would be great to have them as
type UserInfo = [username: string, age: number, isRegistered: boolean];
Link to the announcement https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#labeled-tuple-elements
It's not really clear when defining a tuple without any name
from the lua side it looks much clear
Since typescript 4 supports labeled tuple, it would be great to have them as
Link to the announcement https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#labeled-tuple-elements