UNPKG

type-fns

Version:

A set of types, type checks, and type guards for simpler, safer, and easier to read code.

5 lines (4 loc) 226 B
/** * a companion to the `Omit` type, returns a new object without the omitted attributes */ export declare const omit: <T extends Record<string, any>, K extends readonly (keyof T)[]>(obj: T, keys: K) => Omit<T, K[number]>;