Skip to content

Commit cd2c8c1

Browse files
committed
Fix TS-related issue in docs/api/actionCreatorMiddleware.mdx
1 parent e6a98d0 commit cd2c8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/actionCreatorMiddleware.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import reducer from './reducer'
5454
// Augment middleware to consider all functions with a static type property to be action creators
5555
const isActionCreator = (
5656
action: unknown,
57-
): action is Function & { type: unknown } =>
57+
): action is (...args: any) => any & { type: unknown } =>
5858
typeof action === 'function' && 'type' in action
5959

6060
const actionCreatorMiddleware = createActionCreatorInvariantMiddleware({

0 commit comments

Comments
 (0)