From f2978efe205c509d79ced5b52d7fc311b1552e24 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 1 Jul 2022 20:07:51 +1000 Subject: 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. --- src/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.ts') 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 -- cgit v1.2.3