Namespace: JRPC
Type Aliases​
RequestBody​
Ƭ RequestBody: Object
Type declaration​
Name | Type |
---|---|
id | number | string |
jsonrpc | "2.0" |
method | string |
params? | {} |
Defined in​
src/types/api/jsonrpc/index.ts:1
ResponseBody​
Ƭ ResponseBody: { id
: number
| string
; jsonrpc
: "2.0"
} & SuccessResponseBody
| ErrorResponseBody
Defined in​
src/types/api/jsonrpc/index.ts:8
SuccessResponseBody​
Ƭ SuccessResponseBody: Object
Type declaration​
Name | Type |
---|---|
result | unknown |
Defined in​
src/types/api/jsonrpc/index.ts:13
ErrorResponseBody​
Ƭ ErrorResponseBody: Object
Type declaration​
Name | Type |
---|---|
error | Error |
Defined in​
src/types/api/jsonrpc/index.ts:17
Error​
Ƭ Error: Object
Type declaration​
Name | Type |
---|---|
code | number |
message | string |
data? | unknown |