Keyof Typechecking Equivalent to Values in a Table (Extension)

Hello, I’m trying to figure out if there’s a keyof equivalent when it comes to type checking for values in a table. Just like type tableKeys = keyof<typeof(tableInsert)> returns a union-type variable with all the keys in a given array, can you do that with an array’s values too? Is there something like valueof that I’ve never heard of? This is an extension on my previous type-checking inquiry: Typechecking in an Enum-like Style - Help and Feedback / Scripting Support - Developer Forum | Roblox.

Yes, it exists. It’s just named index instead.

If you want a union of all the types that constitute your array’s values, I believe this is how you would do it:

type tableValues = index<myArray, keyof<myArray>>