From fc20680610b29beaa757cefe0cedfaff15496b30 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Fri, 25 Oct 2024 13:50:57 +0530 Subject: [PATCH] chore: fix type import --- examples/message-monitor/src/lib/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/message-monitor/src/lib/util.ts b/examples/message-monitor/src/lib/util.ts index bdcc0f3..410de77 100644 --- a/examples/message-monitor/src/lib/util.ts +++ b/examples/message-monitor/src/lib/util.ts @@ -1,5 +1,5 @@ import { peerIdFromString } from "@libp2p/peer-id"; -import type { Waku } from "@waku/interfaces"; +import type { IWaku } from "@waku/interfaces"; export const generateRandomNumber = (): number => { return Math.floor(Math.random() * 1000000); @@ -17,7 +17,7 @@ export const sha256 = async (number: number | string): Promise => { const DEFAULT_EXTRA_DATA = { sdk: "0.0.28" }; export const DEFAULT_EXTRA_DATA_STR = JSON.stringify(DEFAULT_EXTRA_DATA); -export const buildExtraData = async (node: Waku, peerId: string): Promise => { +export const buildExtraData = async (node: IWaku, peerId: string): Promise => { const peer = await node.libp2p.peerStore.get(peerIdFromString(peerId)); const hasWebsockes = peer .addresses