UNPKG

preact-material-components

Version:
4 lines (3 loc) 188 B
export type Diff<T extends string, U extends string> = ({[P in T]: P} & {[P in U]: never} & {[x: string]: never})[T]; export type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;