aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-07-01 20:07:51 +1000
committerTerry Truong <terry06890@gmail.com>2022-07-01 20:12:54 +1000
commitf2978efe205c509d79ced5b52d7fc311b1552e24 (patch)
tree695389b5ca85f1e2bf60a771c03a9bda7c4a7c25 /src/lib.ts
parent551fbe163b90cc1f318612c167fbdfe738dd7132 (diff)
Account for compound-node info-lookup sub-name-denoted node absence
Return a null entry in such cases, and have client indicate this with tile-info message.
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.ts b/src/lib.ts
index 2b0aabc..06df78b 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -58,7 +58,7 @@ export type NodeInfo = {
};
export type InfoResponse = {
nodeInfo: NodeInfo,
- subNodesInfo: [] | [NodeInfo, NodeInfo],
+ subNodesInfo: [] | [NodeInfo | null, NodeInfo | null],
};
// Used by auto-mode and tutorial