export type Literal2Object = Partial<{ [Type in Literal['type']]: Literal extends { type?: Type; } ? Omit | boolean : never; }>;