zeed
Preparing search index...
rpc
Function rpc
rpc
<
TypeRpcInfo
extends
Type
<
unknown
>
|
undefined
=
undefined
,
TypeRpcRet
extends
Type
<
unknown
>
=
Type
<
void
>
,
T
=
TypeRpcInfo
extends
undefined
?
()
=>
Infer
<
TypeRpcRet
>
:
(
info
:
Infer
<
TypeRpcInfo
>
,
)
=>
Infer
<
TypeRpcRet
>
|
Promise
<
Infer
<
TypeRpcRet
>
>
,
>
(
info
?:
TypeRpcInfo
,
ret
?:
TypeRpcRet
,
)
:
Type
<
T
>
Creates an RPC function type validator that takes one argument and returns a promise
Type Parameters
TypeRpcInfo
extends
Type
<
unknown
>
|
undefined
=
undefined
TypeRpcRet
extends
Type
<
unknown
>
=
Type
<
void
>
T
=
TypeRpcInfo
extends
undefined
?
()
=>
Infer
<
TypeRpcRet
>
:
(
info
:
Infer
<
TypeRpcInfo
>
,
)
=>
Infer
<
TypeRpcRet
>
|
Promise
<
Infer
<
TypeRpcRet
>
>
Parameters
Optional
info
:
TypeRpcInfo
Optional
ret
:
TypeRpcRet
Returns
Type
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
zeed
Loading...
Creates an RPC function type validator that takes one argument and returns a promise