Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 579bc2bf5d
*Update dist 2022-11-16 12:28:12 -05:00
Derrick Hammer 98ad784c8e
*Use dynamic type for opts 2022-11-16 12:27:53 -05:00
3 changed files with 3 additions and 3 deletions

2
dist/index.d.ts vendored
View File

@ -6,7 +6,7 @@ export default class DHTOnline extends DHTOnlineBase {
constructor(swarm: any, { id, data, ...opts }?: {
id?: Buffer;
data?: {};
opts?: any;
[key: string]: any;
});
handlePeerAdd(peer: any): void;
handlePeerRemove(peer: any): void;

2
dist/index.d.ts.map vendored
View File

@ -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"}

View File

@ -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 });