Here is some code that I am working with:
type Opaque<T,U> = T & {_:U};
type EKey = Opaque<number,'EKey'>;
type AKey = Opaque<EKey,'AKey'>;
type PKey = Opaque<AKey,'PKey'>;
let a = <PKey>1;
let b:EKey = a;
My goal is to have a
display as PKey
instead of
Opaque<Opaque<Opaque<"EKey">,"AKey">,"PKey">
when I hover over it.
https://i.sstatic.net/h0VdJ.png
I'm wondering if there is a way to achieve this using default vscode settings or by creating a custom vscode extension with the vscode API?