MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/server
index
toArrayAsync
Function toArrayAsync
toArrayAsync
<
T
extends
AsyncGenerator
<
unknown
,
any
,
any
>
>
(
it
:
T
,
)
:
Promise
<
AsyncGeneratorValue
<
T
>
[]
>
Collects all values from an async generator into an array.
Type Parameters
T
extends
AsyncGenerator
<
unknown
,
any
,
any
>
Parameters
it
:
T
Returns
Promise
<
AsyncGeneratorValue
<
T
>
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V1 Docs
MCP TypeScript SDK (V2)
Loading...
Collects all values from an async generator into an array.