File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ const IDENTIFY_PROTOCOLS = IdentifyService.multicodecs
37
37
* @typedef {import('multiaddr') } Multiaddr
38
38
* @typedef {import('libp2p-interfaces/src/connection').Connection } Connection
39
39
* @typedef {import('libp2p-interfaces/src/stream-muxer/types').MuxedStream } MuxedStream
40
+ * @typedef {import('libp2p-interfaces/src/transport/types').TransportFactory } TransportFactory
41
+ * @typedef {import('libp2p-interfaces/src/stream-muxer/types').MuxerFactory } MuxerFactory
42
+ * @typedef {import('libp2p-interfaces/src/crypto/types').Crypto } Crypto
40
43
* @typedef {import('libp2p-interfaces/src/pubsub') } Pubsub
41
44
*/
42
45
@@ -60,8 +63,13 @@ const IDENTIFY_PROTOCOLS = IdentifyService.multicodecs
60
63
* @property {RelayOptions } [relay]
61
64
* @property {Object } [transport] transport options indexed by transport key
62
65
*
66
+ * @typedef {Object } Libp2pModules
67
+ * @property {TransportFactory[] } transport
68
+ * @property {MuxerFactory[] } streamMuxer
69
+ * @property {Crypto[] } connEncryption
70
+ *
63
71
* @typedef {Object } Libp2pOptions
64
- * @property {Object[] } modules libp2p modules to use
72
+ * @property {Libp2pModules } modules libp2p modules to use
65
73
* @property {import('./address-manager').AddressManagerOptions } [addresses]
66
74
* @property {import('./connection-manager').ConnectionManagerOptions } [connectionManager]
67
75
* @property {import('./dialer').DialerOptions } [dialer]
You can’t perform that action at this time.
0 commit comments