Typescript Library Declarations (ES2023)
Interface Iterator<T, TReturn, TNext>
Type Parameters
T
TReturn
=
any
TNext
=
undefined
Hierarchy
Iterator
Generator
IterableIterator
Index
Methods
next
return?
throw?
Methods
next
next
(
...
args
)
:
IteratorResult
<
T
,
TReturn
>
Parameters
Rest
...
args
:
[
]
|
[
TNext
]
Returns
IteratorResult
<
T
,
TReturn
>
Optional
return
return
(
value
?
)
:
IteratorResult
<
T
,
TReturn
>
Parameters
Optional
value
:
TReturn
Returns
IteratorResult
<
T
,
TReturn
>
Optional
throw
throw
(
e
?
)
:
IteratorResult
<
T
,
TReturn
>
Parameters
Optional
e
:
any
Returns
IteratorResult
<
T
,
TReturn
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
next
return
throw