Skip to content

Commit

Permalink
fix(typings): Fixed yet another typing for reduce() when having initi…
Browse files Browse the repository at this point in the history
…alValue
  • Loading branch information
grantila committed Dec 5, 2018
1 parent ae8ff3f commit 74b4840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export async function reduce< T, R >(
reducer: ReduceFunction< T, R >,
initialValue: R | PromiseLike< R >
)
: Promise< R | undefined >;
: Promise< R >;

export function reduce< T >(
reducer: ReduceFunction< T, T >
Expand Down

0 comments on commit 74b4840

Please sign in to comment.