Type Alias: PrettifyObject<T>
PrettifyObject<
T
>:{ [K in keyof T]: T[K] }
An utility type that fuses intersections of objects.
Type Parameters
Type Parameter |
---|
T extends object |
Example
type Objects = {
foo: string;
bar: number;
} & {
hello: boolean;
world: bigint;
};
type PrettyObjects = PrettifyObject<Objects>;
// {
// foo: string;
// bar: number;
// hello: boolean;
// world: bigint
// }