Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) |
Member Summary
Public Members | ||
public get |
If they are definetly more. |
|
public get |
Gets the current page. |
|
public set |
Sets the current page. |
Method Summary
Public Methods | ||
public |
The async iterator loads individual items. |
|
public |
Gets a specific page. |
|
public |
Runs for the next page (starts at zero). |
Inherited Summary
From class Request | ||
protected |
|
|
public |
cancel() Cancels the request. |
|
public |
Formats the request object and returns an object of Request<T>'s T. |
|
public |
Performs the request |
Public Constructors
public constructor(options: Object) source
Creates request given path. Provide options as object
Override:
Request#constructorParams:
Name | Type | Attribute | Description |
options | Object |
Public Members
Public Methods
public [Symbol.iterator]() source
The async iterator loads individual items. DO NOT call any other methods as that will mess up the page indexing.
public async getPage(page: number, mutate: boolean): Object source
Gets a specific page.
Return:
Object |
Return Properties:
Name | Type | Attribute | Description |
data | Object[] | Array of data |
|
areMore | boolean | If there is more. If mutate is true, this is the same as doing PagedRequest#areMore |