GitHub
Preparing search index...
The search index is not available
@seamapi/http - v1.25.0
@seamapi/http
connect
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
Seam
Paginator
<
const
TResponse
,
const
TResponseKey
>
(
parent
,
request
)
:
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]
[async
Iterator]
(
)
:
AsyncGenerator
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
any
,
unknown
>
Returns
AsyncGenerator
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
any
,
unknown
>
first
Page
first
Page
(
)
:
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
Returns
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
flatten
flatten
(
)
:
AsyncGenerator
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
any
,
unknown
>
Returns
AsyncGenerator
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
any
,
unknown
>
flatten
To
Array
flatten
To
Array
(
)
:
Promise
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
Returns
Promise
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
next
Page
next
Page
(
nextPageCursor
)
:
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
Parameters
nextPageCursor
:
null
|
PageCursor
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.25.0
Loading...