@dxos/typings 0.1.56-next.a63ce79 → 0.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/hypercore.d.ts +3 -0
package/package.json
CHANGED
package/src/hypercore.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ declare module 'hypercore' {
|
|
|
93
93
|
keyPair?: { publicKey: Buffer; secretKey: Buffer };
|
|
94
94
|
onauthenticate?: (remotePublicKey: Buffer, cb: () => void) => void;
|
|
95
95
|
onfeedauthenticate?: (feed: Hypercore, remotePublicKey: Buffer, cb: () => void) => void;
|
|
96
|
+
maxRequests?: number;
|
|
96
97
|
};
|
|
97
98
|
|
|
98
99
|
/**
|
|
@@ -139,6 +140,7 @@ declare module 'hypercore' {
|
|
|
139
140
|
valueEncoding?: ValueEncoding;
|
|
140
141
|
crypto?: Crypto;
|
|
141
142
|
writable?: boolean;
|
|
143
|
+
stats?: boolean;
|
|
142
144
|
};
|
|
143
145
|
|
|
144
146
|
/**
|
|
@@ -236,6 +238,7 @@ declare module 'hypercore' {
|
|
|
236
238
|
/** @deprecated remove in v10 */
|
|
237
239
|
getBatch(start: number, end: number, options?: GetOptions, cb?: Callback<T[]>): void;
|
|
238
240
|
|
|
241
|
+
// TODO(burdon): Documented signature is different from code.
|
|
239
242
|
// https://github.com/hypercore-protocol/hypercore/tree/v9.12.0#const-id--feeddownloadrange-callback
|
|
240
243
|
download(range?: Range, cb?: Callback<number>): number;
|
|
241
244
|
|