I would like to declare few simple types, to distinguish strings like "url", "absolute url", "json", etc. It would be enough, to show declared type in hint, but type checking would be even better (i.e. "url" couldn't be passed to function expecting "absolute url").
The issue is that TypeScript/VSC understands, that "url" is a string and skips my declared type. Is there any way, to show declared type in hint? I don't mind hacky solutions as long as they don't break TypeScript features.
Sample code - I want to see "const data: url" in hint:
What I want to see (but this solution is bad, because url shouldn't be a number):




