@libp2p/interfaces
Advanced tools
Comparing version 1.3.22 to 1.3.23
@@ -84,5 +84,5 @@ import type { ConnectionGater, ConnectionProtector } from './connection/index.js'; | ||
getDHT(): DualDHT | undefined; | ||
setPubSub(pubsub: PubSub): PubSub; | ||
setPubSub(pubsub: PubSub): PubSub<import("./pubsub/index.js").PubSubEvents>; | ||
getPubSub(): PubSub | undefined; | ||
} | ||
//# sourceMappingURL=components.d.ts.map |
@@ -92,3 +92,3 @@ import type { PeerId } from '../peer-id/index.js'; | ||
} | ||
export interface PubSub extends EventEmitter<PubSubEvents>, Startable { | ||
export interface PubSub<Events = PubSubEvents> extends EventEmitter<Events>, Startable { | ||
globalSignaturePolicy: typeof StrictSign | typeof StrictNoSign; | ||
@@ -95,0 +95,0 @@ multicodecs: string[]; |
{ | ||
"name": "@libp2p/interfaces", | ||
"version": "1.3.22", | ||
"version": "1.3.23", | ||
"description": "Interfaces for JS Libp2p", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -110,3 +110,3 @@ import type { PeerId } from '../peer-id/index.js' | ||
export interface PubSub extends EventEmitter<PubSubEvents>, Startable { | ||
export interface PubSub<Events = PubSubEvents> extends EventEmitter<Events>, Startable { | ||
globalSignaturePolicy: typeof StrictSign | typeof StrictNoSign | ||
@@ -113,0 +113,0 @@ multicodecs: string[] |
Sorry, the diff of this file is not supported yet
1368198