KnowledgeOS API Reference
Preparing search index...
sdk/typescript/src
CursorIterator
Class CursorIterator<T>
Type Parameters
T
Implements
PaginatedIterator
<
T
>
Index
Constructors
constructor
Accessors
total
Count
Methods
all
has
Next
initialize
next
Constructors
constructor
new
CursorIterator
<
T
>
(
fetcher
:
(
cursor
:
string
|
null
)
=>
Promise
<
PaginatedResponse
<
T
>
>
,
)
:
CursorIterator
<
T
>
Type Parameters
T
Parameters
fetcher
:
(
cursor
:
string
|
null
)
=>
Promise
<
PaginatedResponse
<
T
>
>
Returns
CursorIterator
<
T
>
Accessors
total
Count
get
totalCount
()
:
number
Returns
number
Methods
all
all
()
:
Promise
<
T
[]
>
Returns
Promise
<
T
[]
>
has
Next
hasNext
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
initialize
initialize
()
:
Promise
<
void
>
Returns
Promise
<
void
>
next
next
()
:
Promise
<
T
[]
>
Returns
Promise
<
T
[]
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
total
Count
Methods
all
has
Next
initialize
next
KnowledgeOS API Reference
Loading...