Compare commits
2 Commits
e643f14e90
...
579bc2bf5d
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 579bc2bf5d | |
Derrick Hammer | 98ad784c8e |
|
@ -6,7 +6,7 @@ export default class DHTOnline extends DHTOnlineBase {
|
||||||
constructor(swarm: any, { id, data, ...opts }?: {
|
constructor(swarm: any, { id, data, ...opts }?: {
|
||||||
id?: Buffer;
|
id?: Buffer;
|
||||||
data?: {};
|
data?: {};
|
||||||
opts?: any;
|
[key: string]: any;
|
||||||
});
|
});
|
||||||
handlePeerAdd(peer: any): void;
|
handlePeerAdd(peer: any): void;
|
||||||
handlePeerRemove(peer: any): void;
|
handlePeerRemove(peer: any): void;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAK/C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,aAAa;IAClD,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,KAAK,CAAM;gBAGjB,KAAK,EAAE,GAAG,EACV,EACE,EAA4B,EAC5B,IAAS,EACT,GAAG,IAAI,EACR,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,GAAG,CAAA;KAAO;IAmBhD,aAAa,CAAC,IAAI,EAAE,GAAG;IAKvB,gBAAgB,CAAC,IAAI,EAAE,GAAG;IAW1B,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM;CAGrC"}
|
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAK/C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,aAAa;IAClD,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,KAAK,CAAM;gBAGjB,KAAK,EAAE,GAAG,EACV,EACE,EAA4B,EAC5B,IAAS,EACT,GAAG,IAAI,EACR,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAO;IAmBxD,aAAa,CAAC,IAAI,EAAE,GAAG;IAKvB,gBAAgB,CAAC,IAAI,EAAE,GAAG;IAW1B,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM;CAGrC"}
|
|
@ -13,7 +13,7 @@ export default class DHTOnline extends DHTOnlineBase {
|
||||||
id = swarm.keyPair.publicKey,
|
id = swarm.keyPair.publicKey,
|
||||||
data = {},
|
data = {},
|
||||||
...opts
|
...opts
|
||||||
}: { id?: Buffer; data?: {}; opts?: any } = {}
|
}: { id?: Buffer; data?: {}; [key: string]: any } = {}
|
||||||
) {
|
) {
|
||||||
super(id, opts as any);
|
super(id, opts as any);
|
||||||
this.flood = new DHTFlood({ id, swarm, ...opts });
|
this.flood = new DHTFlood({ id, swarm, ...opts });
|
||||||
|
|
Loading…
Reference in New Issue