Skip to content

Commit cf76303

Browse files
committed
Use Callable Type Signature for Memoize Callback in createSelectorCreator
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
1 parent 0c25739 commit cf76303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ export function createSelectorCreator(
971971
): typeof createSelector;
972972

973973
export function createSelectorCreator<O1>(
974-
memoize: <F extends Function>(func: F,
974+
memoize: <F extends (...args: any[]) => any>(func: F,
975975
option1: O1) => F,
976976
option1: O1,
977977
): typeof createSelector;

0 commit comments

Comments
 (0)