Typedef
Static Public Summary | ||
public |
A generic action object that is dispatched by {APIDispatcher} |
|
public |
An action object that is dispatched when counts should be added to a store |
|
public |
An action object the is dispatched when an object is destroyed |
|
public |
FailedRequestCallback(error: Error): Function A method signature for rejected request promises |
|
public |
An action object that is dispatched when items should be added to a store |
|
public |
A Promise that resolves with a SuccessfulRequestCallback and rejects with a FailedRequestCallback |
|
public |
ResourceQuery: number | string | object An object representing a resource query. |
|
public |
SuccessfulRequestCallback(json: object): Function A method signature for resolved request promises |
Static Public
public Action: object source
A generic action object that is dispatched by {APIDispatcher}
Properties:
Name | Type | Attribute | Description |
actionType | string | The type of action being dispatched |
public CountAction: object source
An action object that is dispatched when counts should be added to a store
Properties:
Name | Type | Attribute | Description |
actionType | string | The type of action being dispatched |
|
count | number | The count returned from the API call |
|
query | ResourceQuery |
|
The query params for the count call |
public FailedRequestCallback(error: Error): Function source
A method signature for rejected request promises
Example:
import WebAPI from "./WebAPI";
WebAPI.get("/failed/request").catch(error => {
// do something with the error
console.log(error.message);
});
public MergeAction: object source
An action object that is dispatched when items should be added to a store
public RequestPromise: Promise source
A Promise that resolves with a SuccessfulRequestCallback and rejects with a FailedRequestCallback