ponder-client
Version:
Type-safe, lightweight Ponder client
16 lines (14 loc) • 515 B
text/typescript
/**
* @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];
// eslint-disable-next-line @typescript-eslint/ban-types
} & {};
// eslint-disable-next-line import/prefer-default-export
export type { Prettify };