diff --git a/packages/object-reduce/index.d.ts b/packages/object-reduce/index.d.ts index d6bf45e48..6a1be64af 100644 --- a/packages/object-reduce/index.d.ts +++ b/packages/object-reduce/index.d.ts @@ -1,8 +1,10 @@ type Predicate = (acc: Acc, key: keyof T, value: T[keyof T], index: number, keys: Array) => Acc -export function reduce( +declare function reduce( obj: T, predicate: Predicate, initialValue?: Acc ): Acc + +export default reduce \ No newline at end of file diff --git a/packages/object-reduce/index.tests.ts b/packages/object-reduce/index.tests.ts index 6342acc41..26d51f36e 100644 --- a/packages/object-reduce/index.tests.ts +++ b/packages/object-reduce/index.tests.ts @@ -1,4 +1,4 @@ -import { reduce } from './index'; +import reduce from './index'; const obj = { a: 3, b: 4, c: 9 };