Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit a333b96

Browse files
committed
docs: add extend
1 parent 2e0217b commit a333b96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ You can see the bundle in action in the [custom libp2p example](examples/custom-
540540
- `overrideFunction` (object):
541541
- A function that allows overriding parts of libp2p's config, using dynamic arguments, without fully replacing the bundle as a custom libp2p bundle would do
542542
- It is called with the arguments `{ datastore, peerInfo, peerBook, options, config }`
543+
- `extend` (boolean): Whether to fully replace the transport/discover arrays (`false`) or to concat them (`true`)
543544
- `modules` (object):
544545
- `transport` (Array<[libp2p.Transport](https://github.com/libp2p/interface-transport)>): An array of Libp2p transport classes/instances to use _instead_ of the defaults. See [libp2p/interface-transport](https://github.com/libp2p/interface-transport) for details.
545546
- `peerDiscovery` (Array<[libp2p.PeerDiscovery](https://github.com/libp2p/interface-peer-discovery)>): An array of Libp2p peer discovery classes/instances to use _instead_ of the defaults. See [libp2p/peer-discovery](https://github.com/libp2p/interface-peer-discovery) for details. If passing a class, configuration can be passed using the config section below under the key corresponding to you module's unique `tag` (a static property on the class)

0 commit comments

Comments
 (0)