Prelude API
Guides
Skill
GitHub
Preparing search index...
@prelude/jsonrpc
HandleOptions
Interface HandleOptions
Handlers may return a value or a promise; both are awaited where it matters.
interface
HandleOptions
{
call
?:
(
method
:
string
,
params
:
Params
|
undefined
,
request
:
Request
,
)
=>
unknown
;
error
?:
(
id
:
Id
,
error
:
ErrorObject
)
=>
unknown
;
exception
?:
(
error
:
unknown
)
=>
unknown
;
notification
?:
(
method
:
string
,
params
:
Params
|
undefined
,
notification
:
Notification
,
)
=>
unknown
;
result
?:
(
id
:
Id
,
result
:
unknown
)
=>
unknown
;
}
Index
Properties
call?
error?
exception?
notification?
result?
Properties
Optional
call
call
?:
(
method
:
string
,
params
:
Params
|
undefined
,
request
:
Request
)
=>
unknown
Optional
error
error
?:
(
id
:
Id
,
error
:
ErrorObject
)
=>
unknown
Optional
exception
exception
?:
(
error
:
unknown
)
=>
unknown
Optional
notification
notification
?:
(
method
:
string
,
params
:
Params
|
undefined
,
notification
:
Notification
,
)
=>
unknown
Optional
result
result
?:
(
id
:
Id
,
result
:
unknown
)
=>
unknown
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
call
error
exception
notification
result
Guides
Skill
GitHub
Prelude API
Loading...
Handlers may return a value or a promise; both are awaited where it matters.