Class: CursorPage<T>
structures/Asset.CursorPage
Type parameters
Name |
---|
T |
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new CursorPage<T>(client
: default, options
: CursorPageOptions, response
: CursorPageResponse, method
: any): CursorPage<T>
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
client |
default |
options |
CursorPageOptions |
response |
CursorPageResponse |
method |
any |
Returns: CursorPage<T>
Defined in: structures/Asset.ts:208
Properties
client
• client: default
Defined in: structures/Asset.ts:200
cursors
• cursors: object
Type declaration:
Name | Type |
---|---|
current |
null | string |
next |
null | string |
previous |
null | string |
Defined in: structures/Asset.ts:202
data
• data: T[]
Defined in: structures/Asset.ts:207
method
• method: any
Defined in: structures/Asset.ts:208
options
• options: CursorPageOptions
Defined in: structures/Asset.ts:201
Methods
getNext
▸ getNext(newOptions?
: CursorPageOptions): Promise<CursorPage<T>>
Parameters:
Name | Type |
---|---|
newOptions? |
CursorPageOptions |
Returns: Promise<CursorPage<T>>
Defined in: structures/Asset.ts:222
getPrevious
▸ getPrevious(newOptions?
: CursorPageOptions): Promise<CursorPage<T>>
Parameters:
Name | Type |
---|---|
newOptions? |
CursorPageOptions |
Returns: Promise<CursorPage<T>>
Defined in: structures/Asset.ts:236