UNPKG

ts-essentials

Version:
4 lines (3 loc) 116 B
export type Prettify<Type> = Type extends Function ? Type : Extract<{ [Key in keyof Type]: Type[Key]; }, Type>;