TwitchPagedResult interface

A construct to manage paging of twitch search results

Signature:

export interface TwitchPagedResult<T> 

Remarks

Requests to twitch which can contain multiple pages of results have the returned results wrapped with this object.

If additional data is available cursor will be set and you can pass that into the next service request to load another page of results.

Properties

PropertyModifiersTypeDescription
cursorreadonlystringA reference that allows the next page of data to be fetched
resultreadonlyT[]The page of data returned

TwitchPagedResult.cursor property

A reference that allows the next page of data to be fetched

Signature:

readonly cursor: string;

Remarks

null if this is the last available page of data.

Otherwise pass this value to the next service call to load the next page of data.

TwitchPagedResult.result property

The page of data returned

Signature:

readonly result: T[];