Typescript type grouping a union type of objects by any property discriminating these objects.
MappingByDiscriminator   Example:    type Car = {   kind: "car",   ... };  type Truck = {  ...
Tags: typescript, cheatsheet