How to make Combined types appear in form of a single name

As the topic describes, example, I’ve created 2 types, being a Cup and a WaterBottle,
WaterBottle being a variant / advanced version of Cup.
image

When I define a variable as type Cup, it shows a single word, which is what I’m using type for, easier to read and understand:
Screenshot 2024-12-04 152400

But when its defined as type WaterBottle, it always shows up with a &, making it annoying to read:
Screenshot 2024-12-04 152008

Anyways I can make it into a single word?

2 Likes

You are combining two types, of course it will show up. If you want to change this, you have to create the Bottle type without combining the Cup type, basically something like this:

export type Bottle = {
    Filled: boolean,
    Closed: boolean
}
2 Likes

i dont think you got the point, im looking for a way to combine them but only shows a single word

1 Like

there is a way to change that rather than non-exporting the cup type
or I guess that may be possible with the keyof<> keyword of the New Type Solver [Beta] but I haven’t used it since it made studio crash whenever I type something

1 Like