*Use dynamic type for opts
This commit is contained in:
parent
e643f14e90
commit
98ad784c8e
|
@ -13,7 +13,7 @@ export default class DHTOnline extends DHTOnlineBase {
|
|||
id = swarm.keyPair.publicKey,
|
||||
data = {},
|
||||
...opts
|
||||
}: { id?: Buffer; data?: {}; opts?: any } = {}
|
||||
}: { id?: Buffer; data?: {}; [key: string]: any } = {}
|
||||
) {
|
||||
super(id, opts as any);
|
||||
this.flood = new DHTFlood({ id, swarm, ...opts });
|
||||
|
|
Loading…
Reference in New Issue