From 6ee0833cb9f34f233e5587e6e86875ac8132ca66 Mon Sep 17 00:00:00 2001 From: AmyangXYZ Date: Thu, 21 Dec 2023 12:20:01 -0500 Subject: [PATCH] fix build error --- src/components/PacketSniffer.vue | 3 ++- src/networks/TSCH/node.ts | 7 ++----- src/networks/TSCH/typedefs.ts | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/PacketSniffer.vue b/src/components/PacketSniffer.vue index 61863e3..032322e 100644 --- a/src/components/PacketSniffer.vue +++ b/src/components/PacketSniffer.vue @@ -3,7 +3,8 @@ import ChannelChart from '@/components/ChannelChart.vue' import { ref, watch, nextTick } from 'vue' import { Network } from '@/hooks/useStates' -import { type Packet, PKT_TYPES } from '@/networks/TSCH/typedefs' +import type { Packet } from '@/networks/typedefs' +import { PKT_TYPES } from '@/networks/TSCH/typedefs' import { Filter } from '@element-plus/icons-vue' const filterRules = ref() diff --git a/src/networks/TSCH/node.ts b/src/networks/TSCH/node.ts index 3247073..d201fbb 100644 --- a/src/networks/TSCH/node.ts +++ b/src/networks/TSCH/node.ts @@ -2,17 +2,14 @@ import type { ScheduleConfig, Cell, - Packet, - Message, INIT_MSG_PAYLOAD, BEACON_PKT_PAYLOAD, ASSOC_REQ_PKT_PAYLOAD, ASN_MSG_PAYLOAD, - ASSOC_RSP_PKT_PAYLOAD, - MsgHandler, - PktHandler + ASSOC_RSP_PKT_PAYLOAD } from './typedefs' import { MSG_TYPES, ADDR, CELL_TYPES, PKT_TYPES } from './typedefs' +import type { Packet, Message, MsgHandler, PktHandler } from '../typedefs' class TSCHNode { id: number = 0 diff --git a/src/networks/TSCH/typedefs.ts b/src/networks/TSCH/typedefs.ts index 02b2b63..0e09810 100644 --- a/src/networks/TSCH/typedefs.ts +++ b/src/networks/TSCH/typedefs.ts @@ -18,6 +18,7 @@ export interface ScheduleConfig { shared_channel: number } + // basic unit of the communication schedule export interface Cell { type: number