Skip to content

Commit

Permalink
Add type for message types
Browse files Browse the repository at this point in the history
Fixed: #480
  • Loading branch information
jrandolf committed Jul 12, 2023
1 parent 8861402 commit f83e3d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,14 @@ Message = (
)

CommandResponse = {
type: "success",
id: js-uint,
result: ResultData,
Extensible
}

ErrorResponse = {
type: "error",
id: js-uint / null,
error: ErrorCode,
message: text,
Expand All @@ -360,6 +362,7 @@ EmptyResult = {
}

Event = {
type: "event",
EventData,
Extensible
}
Expand Down

0 comments on commit f83e3d6

Please sign in to comment.