@seamapi/http - v1.70.0
GitHub
Preparing search index...
index
SeamPaginator
Class SeamPaginator<TResponse, TResponseKey>
Type Parameters
const
TResponse
const
TResponseKey
extends
keyof
TResponse
Implements
AsyncIterable
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
Index
Constructors
constructor
Methods
[async
Iterator]
first
Page
flatten
flatten
To
Array
next
Page
Constructors
constructor
new
SeamPaginator
<
const
TResponse
,
const
TResponseKey
extends
string
|
number
|
symbol
,
>
(
parent
:
SeamPaginatorParent
,
request
:
SeamHttpRequest
<
TResponse
,
TResponseKey
>
,
)
:
SeamPaginator
<
TResponse
,
TResponseKey
>
Type Parameters
const
TResponse
const
TResponseKey
extends
string
|
number
|
symbol
Parameters
parent
:
SeamPaginatorParent
request
:
SeamHttpRequest
<
TResponse
,
TResponseKey
>
Returns
SeamPaginator
<
TResponse
,
TResponseKey
>
Methods
[async
Iterator]
"[asyncIterator]"
()
:
AsyncGenerator
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
>
Returns
AsyncGenerator
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
first
Page
firstPage
()
:
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
Returns
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
flatten
flatten
()
:
AsyncGenerator
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
Returns
AsyncGenerator
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
flatten
To
Array
flattenToArray
()
:
Promise
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
Returns
Promise
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
next
Page
nextPage
(
nextPageCursor
:
null
|
SeamPageCursor
,
)
:
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
Parameters
nextPageCursor
:
null
|
SeamPageCursor
Returns
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
[async
Iterator]
first
Page
flatten
flatten
To
Array
next
Page
GitHub
@seamapi/http - v1.70.0
Loading...