GitHub
Preparing search index...
The search index is not available
@seamapi/http - v1.24.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]
fetch
first
flatten
to
Array
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
>
fetch
fetch
(
nextPageCursor
?
)
:
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
Parameters
Optional
nextPageCursor
:
null
|
string
Returns
Promise
<
[
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
,
Pagination
]
>
first
first
(
)
:
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
>
to
Array
to
Array
(
)
:
Promise
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
Returns
Promise
<
EnsureReadonlyArray
<
TResponse
[
TResponseKey
]
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
[async
Iterator]
fetch
first
flatten
to
Array
GitHub
@seamapi/http - v1.24.0
Loading...