Hello, I would like to know how I would type def metatables. I looked through a lot of devforum posts all saying how you set a metatable but no solution.
lets say I would make a metatable that looks like this
now roblox type definition can tell that E is a valid key and give autocorrect suggestions
roblox even recognizes it when we use typeof in another type!
and roblox seems to have type support for metatables
but I wanna know, is there a way to define it plainly?
maybe something like this?
edit: I know about type merging but I just wanna know if there’s a way to define a metatable in the type