Is
type myType = {
Number: number,
String: string,
change: boolean,
Anim: AnimationTrack
}
local anim: myType = {
Number = 2,
String = "Idle",
change = true,
Anim = animations.Idle
}
Better than
local someTable = {
Number: number,
String: string,
change: boolean,
Anim: AnimationTrack
}
I have a table that has a data stracture that contains number, string, bool, and animation track. I plan to loop and use it every frame for calculating numbers and check if booleans are true. So should that data stracture be a table or a type? which one is more performant?