Documentation
Github
Preparing search index...
iso-ucan
client
<internal>
InferProtocol
Type Alias InferProtocol<Routes>
InferProtocol
:
{
[
K
in
keyof
Routes
]
:
Routes
[
K
]
extends
RouteOutput
<
infer
Cap
,
infer
Output
,
>
?
{
cmd
:
Cap
[
"cmd"
]
extends
K
?
Cap
[
"cmd"
]
:
never
;
in
:
StandardSchemaV1.InferOutput
<
Cap
[
"schema"
]
>
;
out
:
Output
;
}
:
never
}
[
keyof
Routes
]
Infer the protocol from a router
Type Parameters
Routes
extends
Record
<
string
,
RouteOutput
<
Capability
<
StandardSchemaV1
>
,
unknown
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Documentation
Loading...
Infer the protocol from a router