API Reference / @evolu/common / Types / Simplify
Type Alias: Simplify<T>
type Simplify<T> = Kysely.Simplify<T>;
Defined in: packages/common/src/Types.ts:202
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 }
Type Parameters
Type Parameter |
---|
T |