Are Type Declarations More Performant than tables?

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?

Type declarations don’t affect your performance, so it’s all down to preference. I don’t think you need to declare your table type because it’s already gonna be automatically declared by the engine

do type declaration take more space then?

I’m not 100% sure, but because it’s like a variable, it’s gonna be stored somewhere, so it does take space. The thing is that it doesn’t take up that much space that it’ll be noticeable or impact your performance