mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-04-24 13:22:13 +00:00
Apply suggestions from code review
This commit is contained in:
parent
06c7c8edd6
commit
f7d9131619
2
types/libp2p-pubsub/index.d.ts
vendored
2
types/libp2p-pubsub/index.d.ts
vendored
@ -3,7 +3,7 @@
|
||||
/// <reference types="libp2p-gossipsub"/>
|
||||
|
||||
declare interface LibP2pPubsubUtil {
|
||||
normalizeInRpcMessage(msg: import("libp2p-gossipsub/src/message").Message): import("libp2p-gossipsub/src/message").Message;
|
||||
normalizeInRpcMessage(msg: import("libp2p-gossipsub/src/message").Message): import("libp2p-gossipsub/src/message").InMessage;
|
||||
}
|
||||
|
||||
declare module 'libp2p-pubsub' {
|
||||
|
4
types/libp2p/index.d.ts
vendored
4
types/libp2p/index.d.ts
vendored
@ -69,8 +69,8 @@ declare namespace LibP2p {
|
||||
export type Options = {
|
||||
config: OptionsConfig,
|
||||
modules: OptionsModules,
|
||||
peerId: import("peer-id"),
|
||||
addresses: {listen: string[]},
|
||||
peerId?: import("peer-id"),
|
||||
addresses?: {listen?: string[], announce?: string[], noAnnounce?: string[]},
|
||||
};
|
||||
|
||||
export interface ConnectionEncryption {
|
||||
|
Loading…
x
Reference in New Issue
Block a user