[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

(no description)

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

Defines 18 functions

  _interopRequireDefault()
  _interopRequireDefault()
  _interopRequireDefault()
  _toConsumableArray()
  _interopRequireDefault()
  _toConsumableArray()
  _interopRequireDefault()
  _interopRequireDefault()
  _interopRequireDefault()
  __webpack_require__()
  isGenerator()
  isPromise()
  isObject()
  isPlainObject()
  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.

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

isPromise(obj)   X-Ref
No description

isObject(o)   X-Ref
No description

isPlainObject(o)   X-Ref
No description

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

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

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

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

createRuntime(controls = {}, dispatch)   X-Ref
Create a co-routine runtime.

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

createMiddleware(controls = {})   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.

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



Generated : Mon Apr 15 08:20:02 2024 Cross-referenced by PHPXref