UNPKG

mesh-fetcher

Version:

A Node.js package for fetching data from multiple APIs with enhanced features.

20 lines (19 loc) 729 B
import { ObjectUtilOptions } from '../types'; /** * Creates a new object with the specified properties omitted. * * @template T - The type of the source object * @template K - The type of the keys to omit * @param {T} obj - The source object * @param {K[]} keys - Array of keys to omit * @param {ObjectUtilOptions} [options] - Options for omit behavior * @returns {Omit<T, K>} A new object without the specified keys * * @example * ```typescript * const user = { name: 'John', age: 30, password: '123' }; * const safe = omit(user, ['password']); * // { name: 'John', age: 30 } * ``` */ export declare function omit<T extends object, K extends keyof T>(obj: T, keys: K[], options?: ObjectUtilOptions): Omit<T, K>;