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
5 lines
142 B
TypeScript
5 lines
142 B
TypeScript
import omitEmpty from 'omit-empty';
|
|
|
|
omitEmpty({ a: 1 }); // $ExpectType object
|
|
omitEmpty({ a: 0}, { omitZero: true }); // $ExpectType object
|