UNPKG

@grindife/supamelon

Version:

Combination of supabase and watermelondb

16 lines (11 loc) 445 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