reports/frontend/node_modules/es-toolkit/dist/compat/object/omit.d.mts
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

46 lines
No EOL
1.6 KiB
TypeScript

import { Many } from "../_internal/Many.mjs";
//#region src/compat/object/omit.d.ts
/**
* Creates a new object with specified keys omitted.
*
* @template T - The type of object.
* @template K - The type of keys to omit.
* @param object - The object to omit keys from.
* @param paths - The keys to be omitted from the object.
* @returns A new object with the specified keys omitted.
*
* @example
* omit({ a: 1, b: 2, c: 3 }, 'a', 'c');
* // => { b: 2 }
*/
declare function omit<T extends object, K extends PropertyKey[]>(object: T | null | undefined, ...paths: K): Pick<T, Exclude<keyof T, K[number]>>;
/**
* Creates a new object with specified keys omitted.
*
* @template T - The type of object.
* @template K - The type of keys to omit.
* @param object - The object to omit keys from.
* @param paths - The keys to be omitted from the object.
* @returns A new object with the specified keys omitted.
*
* @example
* omit({ a: 1, b: 2, c: 3 }, 'a', ['b', 'c']);
* // => {}
*/
declare function omit<T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Array<Many<K>>): Omit<T, K>;
/**
* Creates a new object with specified keys omitted.
*
* @template T - The type of object.
* @param object - The object to omit keys from.
* @param paths - The keys to be omitted from the object.
* @returns A new object with the specified keys omitted.
*
* @example
* omit({ a: 1, b: 2, c: 3 }, 'a', 'b');
* // => { c: 3 }
*/
declare function omit<T extends object>(object: T | null | undefined, ...paths: Array<Many<PropertyKey>>): Partial<T>;
//#endregion
export { omit };