[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> redux-routine.js (summary)

(no description)

File Size: 865 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 16 functions

  _interopRequireDefault()
  _interopRequireDefault()
  _interopRequireDefault()
  _toConsumableArray()
  _interopRequireDefault()
  _toConsumableArray()
  _interopRequireDefault()
  _interopRequireDefault()
  _interopRequireDefault()
  __webpack_require__()
  isGenerator()
  isPromise()
  isAction()
  isActionOfType()
  createRuntime()
  createMiddleware()

Functions
Functions that are not part of a class:

_interopRequireDefault(obj)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

__webpack_require__(moduleId)   X-Ref
No description

isGenerator(object)   X-Ref
Returns true if the given object is a generator, or false otherwise.

return: {object is Generator} Whether object is a generator.
param: {any} object Object to test.

isPromise(obj)   X-Ref
No description

isAction(object)   X-Ref
Returns true if the given object quacks like an action.

return: {object is import('redux').AnyAction}  Whether object is an action.
param: {any} object Object to test

isActionOfType(object, expectedType)   X-Ref
Returns true if the given object quacks like an action and has a specific
action type

return: {object is import('redux').AnyAction} Whether object is an action and is of specific type.
param: {unknown} object       Object to test
param: {string}  expectedType The expected type for the action.

createRuntime()   X-Ref
Create a co-routine runtime.

param: controls Object of control handlers.
param: dispatch Unhandled action dispatch.

createMiddleware()   X-Ref
Creates a Redux middleware, given an object of controls where each key is an
action type for which to act upon, the value a function which returns either
a promise which is to resolve when evaluation of the action should continue,
or a value. The value or resolved promise value is assigned on the return
value of the yield assignment. If the control handler returns undefined, the
execution is not continued.

return: {import('redux').Middleware} Co-routine runtime
param: {Record<string, (value: import('redux').AnyAction) => Promise<boolean> | boolean>} controls Object of control handlers.



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1