Skip to content

Type Alias: Prettify<T>

type Prettify<T> = { [K in keyof T]: T[K] } & {};

Defined in: node_modules/viem/_types/types/utils.d.ts:125

Type Parameters

T

Description

Combines members of an intersection into a readable type.

See

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 }