UNPKG

@theguild/components

Version:
7 lines (5 loc) 224 B
type Prettify<T> = { [K in keyof T]: T[K]; } & {}; type UnionToIntersection<T> = Prettify<(T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never>; export type { Prettify, UnionToIntersection };