UNPKG

type-plus

Version:
7 lines (6 loc) 153 B
/** * Exclude type U from properties in T. */ export type ExcludePropType<T extends Record<keyof any, any>, U> = { [k in keyof T]: Exclude<T[k], U> }