mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added types for omit-empty * Used dt-gen to regenerate types * Added strictFunctionTypes flag * Removed patch version * Fixed some lint errors * Fixed more lint errors
13 lines
405 B
TypeScript
13 lines
405 B
TypeScript
// Type definitions for omit-empty 1.0
|
|
// Project: https://github.com/jonschlinkert/omit-empty
|
|
// Definitions by: Shubham Kanodia <https://github.com/pastelsky>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
interface OmitOptions {
|
|
omitZero?: boolean;
|
|
}
|
|
|
|
declare function omitEmpty(obj: object, options?: OmitOptions): object;
|
|
export default omitEmpty;
|