Skip to content

Commit

Permalink
Use Callable Type Signature for Memoize Callback in createSelectorCre…
Browse files Browse the repository at this point in the history
…ator

Addresses issue #20007 by adding a callable type signature for the memoize callback in createSelectorCreator. This avoids a type error when using Lodash Memoize as the first argument in createSelectorCreator
  • Loading branch information
micahbales committed Jul 30, 2020
1 parent 0c25739 commit cf76303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ export function createSelectorCreator(
): typeof createSelector;

export function createSelectorCreator<O1>(
memoize: <F extends Function>(func: F,
memoize: <F extends (...args: any[]) => any>(func: F,
option1: O1) => F,
option1: O1,
): typeof createSelector;
Expand Down

0 comments on commit cf76303

Please sign in to comment.