Is it possible to remap typescript union type with values form object type?
e.g. what I have in mid:
type Union = 'item-type' | 'category';
type Special = {
'item-type': 'itemType';
};
type RemapedValue = [... some realy awesome typescript ...] // => 'itemType' | 'category'