I finally learned about the posibility of creating type script definitions for plain JS using .d.ts
files. These are imported globally, which is great for defining JSON types and the like.
However, all of them are imported globally. So if I have a helper type that is used as a part of bigger definition, it will polute the entire project.
For example:
type PrimitiveValues = string | number | boolean;
type PromitiveRecord = Record<string, PrimitiveValues>;
In this case, I might not need PrimitiveValues
explicitly visible. Is it possible to omit these helper symbols?