We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
docs/api/actionCreatorMiddleware.mdx
1 parent e6a98d0 commit cd2c8c1Copy full SHA for cd2c8c1
docs/api/actionCreatorMiddleware.mdx
@@ -54,7 +54,7 @@ import reducer from './reducer'
54
// Augment middleware to consider all functions with a static type property to be action creators
55
const isActionCreator = (
56
action: unknown,
57
-): action is Function & { type: unknown } =>
+): action is (...args: any) => any & { type: unknown } =>
58
typeof action === 'function' && 'type' in action
59
60
const actionCreatorMiddleware = createActionCreatorInvariantMiddleware({
0 commit comments