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