Class: Page<I, T\>
A page reddit returns from listings
example
#
Type parametersName | Type | Default |
---|---|---|
I | Identified | - |
T | - | any |
#
Properties#
items• items: I[]
Defined in: list/page.ts:25
#
r• r: Reddit
Defined in: list/page.ts:18
#
Methods#
fetchâ–¸ fetch(): Promise<Page<I, T>>
Refetch the current page
Returns: Promise<Page<I, T>>
Defined in: list/page.ts:47
#
nextâ–¸ next(count
: number): Promise<Page<I, T>>
Fetch next page after this
#
ParametersName | Type | Description |
---|---|---|
count | number | count of items |
Returns: Promise<Page<I, T>>
Defined in: list/page.ts:63
#
prevâ–¸ prev(count
: number): Promise<Page<I, T>>
Fetch previous page before this
#
ParametersName | Type | Description |
---|---|---|
count | number | count of items |
Returns: Promise<Page<I, T>>
Defined in: list/page.ts:79