aboutsummaryrefslogtreecommitdiff
path: root/protocol.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'protocol.d.ts')
-rw-r--r--protocol.d.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/protocol.d.ts b/protocol.d.ts
index f119045..36bf3e1 100644
--- a/protocol.d.ts
+++ b/protocol.d.ts
@@ -1,27 +1,28 @@
// { type: "handshake", version: "10"}
// { type: "handshake", data: {version: "10"}}
-// { "handshake": {version: "10"}}
+//! { "handshake": {version: "10"}}
-export type ServerboundPacket = null
-export type ClientboundPacket = Handshake
+export type ServerboundPacket = Download
+export type ClientboundPacket = Handshake | DownloadResponse
interface Handshake {
type: "handshake"
- version: string
+ data: { version: string }
}
interface Download {
type: "download",
+ data: null
}
interface DownloadResponse {
type: "download_response",
- entries: TodoEntry[]
+ data: { tasks: Task[] }
}
-interface TodoEntry {
+interface Task {
name: string,
description: string,