API reference › @evolu/common › Types › Simplify
type Simplify<T> = Kysely.Simplify<T>;
Defined in: packages/common/src/Types.ts:203
Simplify an intersection type into a single mapped type.
This utility forces TypeScript to "flatten" an intersection type into a single object type so that tooltips and error messages are easier to read.
Example
type A = { a: string } & { b: number };
// Without Simplify, TypeScript may display A as:
// { a: string } & { b: number }
type B = Simplify<A>;
// B is equivalent to:
// { a: string; b: number }