UNPKG

@nozbe/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

16 lines (11 loc) 430 B
import { $Shape } from '../../../types' type FilterObj2 = <T, Key, Obj = { [Key: string]: T }, Fn = (_: T, __: Key, ___: Obj) => boolean>( fn: Fn, obj: Obj, ) => $Shape<Obj> type FilterObjCur = <T, Key, Obj = { [Key: string]: T }, Fn = (_: T, __: Key, ___: Obj) => boolean>( fn: Fn, ) => (_: Obj) => $Shape<Obj> type FilterObj = FilterObj2 & FilterObjCur declare function filterObj(): FilterObj export default filterObj