Fix build errors

Several types were wrong.
This commit is contained in:
Tom Fifield
2024-05-27 11:40:59 +08:00
parent 0f89e04bb0
commit 7b6b8daeba
4 changed files with 15 additions and 6 deletions
+2 -1
View File
@@ -41,6 +41,7 @@ export interface Device {
direct: Map<number, MessageWithState[]>;
broadcast: Map<Types.ChannelNumber, MessageWithState[]>;
};
traceroutes: Map<number, Types.PacketMetadata<Protobuf.Mesh.RouteDiscovery>[]>;
connection?: Types.ConnectionType;
activePage: Page;
activeNode: number;
@@ -73,7 +74,7 @@ export interface Device {
addPosition: (position: Types.PacketMetadata<Protobuf.Mesh.Position>) => void;
addConnection: (connection: Types.ConnectionType) => void;
addMessage: (message: MessageWithState) => void;
addTraceRoute: (traceroute: Protobuf.Mesh.RouteDiscovery) => void;
addTraceRoute: (traceroute: Types.PacketMetadata<Protobuf.Mesh.RouteDiscovery>) => void;
addMetadata: (from: number, metadata: Protobuf.Mesh.DeviceMetadata) => void;
setMessageState: (
type: "direct" | "broadcast",