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
@@ -3,14 +3,14 @@ import { MessageWithState, useDevice } from "@app/core/stores/deviceStore.js";
import { Message } from "@components/PageComponents/Messages/Message.js";
import { TraceRoute } from "@components/PageComponents/Messages/TraceRoute.js";
import { MessageInput } from "@components/PageComponents/Messages/MessageInput.js";
import type { Types } from "@meshtastic/js";
import type { Protobuf, Types } from "@meshtastic/js";
import { InboxIcon } from "lucide-react";
export interface ChannelChatProps {
messages?: MessageWithState[];
channel: Types.ChannelNumber;
to: Types.Destination;
traceroutes?: Types.PacketMetadata[];
traceroutes?: Types.PacketMetadata<Protobuf.Mesh.RouteDiscovery>[];
}
export const ChannelChat = ({
@@ -2,9 +2,9 @@ import { useDevice } from "@app/core/stores/deviceStore.js";
import type { Protobuf } from "@meshtastic/js";
export interface TraceRouteProps {
from?: Protobuf.Mesh.NodeInfo;
to?: Protobuf.Mesh.NodeInfo;
route?: Protobuf.Mesh.RouteDiscovery;
from: Protobuf.Mesh.NodeInfo;
to: Protobuf.Mesh.NodeInfo;
route: Array<Number>;
}