updeep-remeda/types/reject.d.ts

10 lines
473 B
TypeScript
Raw Normal View History

2019-01-19 00:46:25 +00:00
export declare function reject<C extends object>(predicate: any, collection: C): C extends any[] ? C : object;
interface CurriedReject {
<C extends any[]>(predicate: any, collection: C): C;
<C extends object>(predicate: any, collection: C): Array<C[keyof C]>;
<C extends any[]>(predicate: any): (collection: C) => C;
<C extends object>(predicate: any): (collection: C) => Array<C[keyof C]>;
}
declare const _default: CurriedReject;
export default _default;