@resonatehq/sdk
Preparing search index...
Context
Interface Context
interface
Context
{
beginRpc
<
F
extends
Func
>
(
func
:
F
,
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
,
]
,
)
:
RFI
<
Return
<
F
>
>
;
beginRpc
<
T
>
(
func
:
string
,
...
args
:
any
[]
)
:
RFI
<
T
>
;
beginRpc
(
func
:
string
|
Func
,
...
args
:
any
[]
)
:
RFI
<
any
>
;
beginRun
<
F
extends
Func
>
(
func
:
F
,
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
,
]
,
)
:
LFI
<
Return
<
F
>
>
;
options
(
opts
:
Partial
<
Options
>
)
:
Options
&
{
"[RESONATE_OPTIONS]"
:
true
}
;
promise
<
T
>
(
options
?:
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
,
)
:
RFI
<
T
>
;
rpc
<
F
extends
Func
>
(
func
:
F
,
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
,
]
,
)
:
RFC
<
Return
<
F
>
>
;
rpc
<
T
>
(
func
:
string
,
...
args
:
any
[]
)
:
RFC
<
T
>
;
rpc
(
func
:
string
|
Func
,
...
args
:
any
[]
)
:
RFC
<
any
>
;
run
<
F
extends
Func
>
(
func
:
F
,
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
,
]
,
)
:
LFC
<
Return
<
F
>
>
;
sleep
(
ms
:
number
)
:
RFC
<
void
>
;
}
Index
Methods
begin
Rpc
begin
Run
options
promise
rpc
run
sleep
Methods
begin
Rpc
beginRpc
<
F
extends
Func
>
(
func
:
F
,
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
,
]
,
)
:
RFI
<
Return
<
F
>
>
Type Parameters
F
extends
Func
Parameters
func
:
F
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
]
Returns
RFI
<
Return
<
F
>
>
beginRpc
<
T
>
(
func
:
string
,
...
args
:
any
[]
)
:
RFI
<
T
>
Type Parameters
T
Parameters
func
:
string
...
args
:
any
[]
Returns
RFI
<
T
>
beginRpc
(
func
:
string
|
Func
,
...
args
:
any
[]
)
:
RFI
<
any
>
Parameters
func
:
string
|
Func
...
args
:
any
[]
Returns
RFI
<
any
>
begin
Run
beginRun
<
F
extends
Func
>
(
func
:
F
,
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
,
]
,
)
:
LFI
<
Return
<
F
>
>
Type Parameters
F
extends
Func
Parameters
func
:
F
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
]
Returns
LFI
<
Return
<
F
>
>
options
options
(
opts
:
Partial
<
Options
>
)
:
Options
&
{
"[RESONATE_OPTIONS]"
:
true
}
Parameters
opts
:
Partial
<
Options
>
Returns
Options
&
{
"[RESONATE_OPTIONS]"
:
true
}
promise
promise
<
T
>
(
options
?:
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
:
RFI
<
T
>
Type Parameters
T
Parameters
Optional
options
:
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
Returns
RFI
<
T
>
rpc
rpc
<
F
extends
Func
>
(
func
:
F
,
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
,
]
,
)
:
RFC
<
Return
<
F
>
>
Type Parameters
F
extends
Func
Parameters
func
:
F
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
]
Returns
RFC
<
Return
<
F
>
>
rpc
<
T
>
(
func
:
string
,
...
args
:
any
[]
)
:
RFC
<
T
>
Type Parameters
T
Parameters
func
:
string
...
args
:
any
[]
Returns
RFC
<
T
>
rpc
(
func
:
string
|
Func
,
...
args
:
any
[]
)
:
RFC
<
any
>
Parameters
func
:
string
|
Func
...
args
:
any
[]
Returns
RFC
<
any
>
run
run
<
F
extends
Func
>
(
func
:
F
,
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
,
]
,
)
:
LFC
<
Return
<
F
>
>
Type Parameters
F
extends
Func
Parameters
func
:
F
...
args
:
[
...
Params
<
F
>
[]
,
(
Partial
<
Options
>
&
{
"[RESONATE_OPTIONS]"
:
true
}
)
?
]
Returns
LFC
<
Return
<
F
>
>
sleep
sleep
(
ms
:
number
)
:
RFC
<
void
>
Parameters
ms
:
number
Returns
RFC
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
begin
Rpc
begin
Run
options
promise
rpc
run
sleep
@resonatehq/sdk
Loading...