@apet97/clockify115-sdk - v0.1.0
GitHub
npm
Preparing search index...
paginated-list
PaginatedList
Class PaginatedList<TItem>
Type Parameters
TItem
Implements
AsyncIterable
<
TItem
>
Index
Constructors
constructor
Methods
pages
to
Array
collect
[async
Iterator]
Constructors
constructor
new
PaginatedList
<
TItem
>
(
fetcher
:
(
request
:
PaginatedRequest
&
Record
<
string
,
unknown
>
,
)
=>
PromiseLike
<
readonly
TItem
[]
>
,
baseRequest
:
Record
<
string
,
unknown
>
,
options
:
IterOptions
,
)
:
PaginatedList
<
TItem
>
Type Parameters
TItem
Parameters
fetcher
:
(
request
:
PaginatedRequest
&
Record
<
string
,
unknown
>
,
)
=>
PromiseLike
<
readonly
TItem
[]
>
baseRequest
:
Record
<
string
,
unknown
>
options
:
IterOptions
Returns
PaginatedList
<
TItem
>
Methods
pages
pages
()
:
AsyncGenerator
<
PageEnvelope
<
TItem
>
,
void
,
void
>
Returns
AsyncGenerator
<
PageEnvelope
<
TItem
>
,
void
,
void
>
to
Array
toArray
(
options
?:
PaginatedListToArrayOptions
)
:
Promise
<
TItem
[]
>
Parameters
options
:
PaginatedListToArrayOptions
= {}
Returns
Promise
<
TItem
[]
>
collect
collect
(
options
?:
PaginatedListCollectOptions
,
)
:
Promise
<
PaginatedListCollectResult
<
TItem
>
>
Parameters
options
:
PaginatedListCollectOptions
= {}
Returns
Promise
<
PaginatedListCollectResult
<
TItem
>
>
[async
Iterator]
"[asyncIterator]"
()
:
AsyncIterator
<
TItem
>
Returns
AsyncIterator
<
TItem
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
pages
to
Array
collect
[async
Iterator]
GitHub
npm
@apet97/clockify115-sdk - v0.1.0
Loading...