@types/sharedb 1.0.24 → 2.2.0
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.
- sharedb/README.md +1 -1
- sharedb/index.d.ts +10 -1
- sharedb/package.json +2 -2
sharedb/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for sharedb (https://github.com/share/sha
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharedb.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 01 Dec 2021 08:01:02 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
sharedb/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for sharedb
|
|
1
|
+
// Type definitions for sharedb 2.2
|
|
2
2
|
// Project: https://github.com/share/sharedb
|
|
3
3
|
// Definitions by: Steve Oney <https://github.com/soney>
|
|
4
4
|
// Eric Hwang <https://github.com/ericyhwang>
|
|
@@ -30,6 +30,7 @@ declare class sharedb extends EventEmitter {
|
|
|
30
30
|
pubsub: sharedb.PubSub;
|
|
31
31
|
extraDbs: {[extraDbName: string]: sharedb.ExtraDB};
|
|
32
32
|
milestoneDb?: sharedb.MilestoneDB;
|
|
33
|
+
errorHandler: ErrorHandler;
|
|
33
34
|
|
|
34
35
|
readonly projections: {
|
|
35
36
|
readonly [name: string]: ReadonlyProjection;
|
|
@@ -42,6 +43,8 @@ declare class sharedb extends EventEmitter {
|
|
|
42
43
|
milestoneDb?: sharedb.MilestoneDB,
|
|
43
44
|
suppressPublish?: boolean,
|
|
44
45
|
maxSubmitRetries?: number,
|
|
46
|
+
doNotForwardSendPresenceErrorsToClient?: boolean,
|
|
47
|
+
errorHandler?: ErrorHandler;
|
|
45
48
|
|
|
46
49
|
presence?: boolean,
|
|
47
50
|
/**
|
|
@@ -222,6 +225,7 @@ declare namespace sharedb {
|
|
|
222
225
|
query: QueryContext;
|
|
223
226
|
readSnapshots: ReadSnapshotsContext;
|
|
224
227
|
receive: ReceiveContext;
|
|
228
|
+
receivePresence: PresenceContext;
|
|
225
229
|
reply: ReplyContext;
|
|
226
230
|
sendPresence: PresenceContext;
|
|
227
231
|
submit: SubmitContext;
|
|
@@ -346,3 +350,8 @@ interface PresenceMessage {
|
|
|
346
350
|
}
|
|
347
351
|
|
|
348
352
|
type BasicCallback = (err?: Error) => void;
|
|
353
|
+
|
|
354
|
+
type ErrorHandler = (error: Error, context: ErrorHandlerContext) => void;
|
|
355
|
+
interface ErrorHandlerContext {
|
|
356
|
+
agent?: Agent;
|
|
357
|
+
}
|
sharedb/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/sharedb",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "TypeScript definitions for sharedb",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharedb",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
43
|
+
"typesPublisherContentHash": "dad7e36fc031d7a9c0b324db1a345d7056c756cc410f1e22257f26b18d53aa63",
|
|
44
44
|
"typeScriptVersion": "3.8"
|
|
45
45
|
}
|