UNPKG

@prismatic-io/spectral

Version:

Utility library for building Prismatic connectors and code-native integrations

6 lines (5 loc) 214 B
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; export type Prettify<T> = { [K in keyof T]: T[K]; }; export type ValueOf<T> = T[keyof T];