Named types (Luau type hover in Studio)

It is common that we use large types, which can look like this upon hovering:

image

I suggest that instead of showing a HUGE type, it should show the actual name of the type and what module it has come out of. If it is an intersection of numerous types, it should show that intersection.

In this case I would like to see something like:

Inventory.transaction_schema

‘Inventory’ being the module that the type originated in, and ‘transaction_schema’ is the name of the type.

Right now, these type hovers are mostly useless. They are truncated as well, making them impossible to read anyway.

Suppose I had a type which was ‘transaction_schema & player_schema’, it could show as:
Inventory.transaction_schema & MyPlayerModule.player_schema, for example.

Thank you!

Joe

4 Likes

If you have a feature request on Luau itself, you should probably make an issue on the Luau Github repository.

1 Like