botbook/node_modules/json-schema-library/dist/lib/utils/omit.d.ts

12 lines
348 B
TypeScript
Raw Normal View History

2024-09-04 13:13:15 -03:00
/**
* Omit properties from input object. Accepts any number of properties to
* remove. Example:
*
* ```ts
* omit(myObject, "if", "dependencies");
* ```
*
* @returns shallow copy of input object without specified properties
*/
export declare function omit(object: Record<string, unknown>, ...keysToOmit: string[]): Record<string, unknown>;