aboutsummaryrefslogtreecommitdiff
path: root/protocol.d.ts
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-06-06 22:48:55 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-06-06 22:48:55 +0200
commitbce701919dad8fb3ce0e06ada4d4892240d483e2 (patch)
tree8650bb6076b851dc828b4ae10472893512c06330 /protocol.d.ts
parentdf31b14b3736a1e71dd8c08297f84e3fba228e39 (diff)
downloadkarlender-bce701919dad8fb3ce0e06ada4d4892240d483e2.tar
karlender-bce701919dad8fb3ce0e06ada4d4892240d483e2.tar.bz2
karlender-bce701919dad8fb3ce0e06ada4d4892240d483e2.tar.zst
a
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,