#How can I see computed type?

4 messages · Page 1 of 1 (latest)

jagged sleet
#

Code hints in Webstorm or TS Playground only show the intersection not the final type:

type Item = Record<string, unknown>;
type SerializedItem = {
    field?: string,
    values?: Array<string>,
    ignoreCase?: boolean,
    type: string
};

type InArrayDeepFilterSerializedItem = SerializedItem & { values: Array<Item> }

If I hover over InArrayDeepFilterSerializedItem it's just gonna show me SerializedItem & { values: Array<Item> }... I can see that myself...

#

!helper

proper lodgeBOT
#

:warning: Please wait a bit longer. You can ping helpers <t:1695031871:R>.

lone imp
#

you can use a mapped type to change the way it's displayed in tooltips: