CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1 (changelog, source)
Search

Member predicate Redux::ActionCreator::getMiddlewareFunction

Gets the middleware function that transforms arguments passed to this function into the action payload.

Not every action creator has a middleware function; in such cases the first argument is treated as the action payload.

If async is true, the middlware function returns a promise whose value eventually becomes the action payload. Otherwise, the return value is the payload itself.

FunctionNode getMiddlewareFunction(boolean async)