ACP v2 TypeScript SDK — UNSTABLE DRAFT - v2.0.0
Stable v2 features (draft)
Stable ACP v1
Draft v2 Protocol
GitHub
NPM
Preparing search index...
BatchRequest
Type Alias BatchRequest<Req, Resp, Output>
One request entry passed to
Connection.sendBatch
.
type
BatchRequest
<
Req
=
unknown
,
Resp
=
unknown
,
Output
=
Resp
>
=
{
kind
:
"request"
;
method
:
string
;
params
?:
Req
;
mapResponse
?:
(
response
:
Resp
)
=>
Output
;
options
?:
SendRequestOptions
;
}
Type Parameters
Req
=
unknown
Resp
=
unknown
Output
=
Resp
Index
Properties
kind
method
params?
map
Response?
options?
Properties
Readonly
kind
kind
:
"request"
Readonly
method
method
:
string
Optional
Readonly
params
params
?:
Req
Optional
Readonly
map
Response
mapResponse
?:
(
response
:
Resp
)
=>
Output
Optional
Readonly
options
options
?:
SendRequestOptions
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
kind
method
params
map
Response
options
Stable v2 features (draft)
Stable ACP v1
Draft v2 Protocol
GitHub
NPM
ACP v2 TypeScript SDK — UNSTABLE DRAFT - v2.0.0
Loading...
One request entry passed to
Connection.sendBatch.