mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-04-25 23:43:18 +00:00
No more tsc error on prod code
This commit is contained in:
parent
5d8ab6cf82
commit
dcb3a65a5b
@ -1,6 +1,5 @@
|
|||||||
import { Noise } from "@chainsafe/libp2p-noise";
|
import { Noise } from "@chainsafe/libp2p-noise";
|
||||||
import type { PeerId } from "@libp2p/interface-peer-id";
|
import type { PeerId } from "@libp2p/interface-peer-id";
|
||||||
import { MuxedStream } from "@libp2p/interfaces/stream-muxer/types";
|
|
||||||
import { Mplex } from "@libp2p/mplex";
|
import { Mplex } from "@libp2p/mplex";
|
||||||
import { peerIdFromString } from "@libp2p/peer-id";
|
import { peerIdFromString } from "@libp2p/peer-id";
|
||||||
import { WebSockets } from "@libp2p/websockets";
|
import { WebSockets } from "@libp2p/websockets";
|
||||||
@ -179,13 +178,9 @@ export class Waku {
|
|||||||
* @param peer The peer to dial
|
* @param peer The peer to dial
|
||||||
* @param protocols Waku protocols we expect from the peer; Default to Relay
|
* @param protocols Waku protocols we expect from the peer; Default to Relay
|
||||||
*/
|
*/
|
||||||
async dial(
|
// TODO: Any to be removed once libp2p uses @libp2p/interface-connection for
|
||||||
peer: PeerId | Multiaddr,
|
// dialProtocol
|
||||||
protocols?: Protocols[]
|
async dial(peer: PeerId | Multiaddr, protocols?: Protocols[]): Promise<any> {
|
||||||
): Promise<{
|
|
||||||
stream: MuxedStream;
|
|
||||||
protocol: string;
|
|
||||||
}> {
|
|
||||||
const _protocols = protocols ?? [Protocols.Relay];
|
const _protocols = protocols ?? [Protocols.Relay];
|
||||||
|
|
||||||
const codecs: string[] = [];
|
const codecs: string[] = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user