UNPKG

ts-essentials

Version:
4 lines (3 loc) 208 B
import { AnyArray } from "../any-array"; import { AnyRecord } from "../any-record"; export type StrictOmit<Type extends AnyRecord, Keys extends keyof Type> = Type extends AnyArray ? never : Omit<Type, Keys>;