UNPKG

ponder-client

Version:
13 lines (12 loc) 400 B
/** * @description Combines members of an intersection into a readable type. * * @link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg * @example * Prettify<{ a: string } | { b: string } | { c: number, d: bigint }> * => { a: string, b: string, c: number, d: bigint } */ type Prettify<T> = { [K in keyof T]: T[K]; } & {}; export type { Prettify };