@types/sharedb 1.0.23 → 1.0.24
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 +19 -0
- sharedb/package.json +3 -3
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: Fri,
|
|
11
|
+
* Last updated: Fri, 19 Nov 2021 17:31:08 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
sharedb/index.d.ts
CHANGED
|
@@ -223,6 +223,7 @@ declare namespace sharedb {
|
|
|
223
223
|
readSnapshots: ReadSnapshotsContext;
|
|
224
224
|
receive: ReceiveContext;
|
|
225
225
|
reply: ReplyContext;
|
|
226
|
+
sendPresence: PresenceContext;
|
|
226
227
|
submit: SubmitContext;
|
|
227
228
|
}
|
|
228
229
|
|
|
@@ -255,6 +256,11 @@ declare namespace sharedb {
|
|
|
255
256
|
op: any;
|
|
256
257
|
}
|
|
257
258
|
|
|
259
|
+
interface PresenceContext extends BaseContext {
|
|
260
|
+
presence: PresenceMessage;
|
|
261
|
+
collection?: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
258
264
|
interface QueryContext extends BaseContext {
|
|
259
265
|
index: string;
|
|
260
266
|
collection: string;
|
|
@@ -326,4 +332,17 @@ interface GetOpsOptions {
|
|
|
326
332
|
};
|
|
327
333
|
}
|
|
328
334
|
|
|
335
|
+
interface PresenceMessage {
|
|
336
|
+
a: 'p';
|
|
337
|
+
ch: string; // channel
|
|
338
|
+
src: string; // client ID
|
|
339
|
+
id: string; // presence ID
|
|
340
|
+
p: any; // presence payload
|
|
341
|
+
pv: number; // presence version
|
|
342
|
+
c?: string; // document collection
|
|
343
|
+
d?: string; // document ID
|
|
344
|
+
v?: number; // document version
|
|
345
|
+
t?: string; // document OT type
|
|
346
|
+
}
|
|
347
|
+
|
|
329
348
|
type BasicCallback = (err?: Error) => void;
|
sharedb/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/sharedb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
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": "
|
|
44
|
-
"typeScriptVersion": "3.
|
|
43
|
+
"typesPublisherContentHash": "31089b496f83294c189f25c4fe77b81644e41e69c380c9aa1b79cbbb645866c7",
|
|
44
|
+
"typeScriptVersion": "3.8"
|
|
45
45
|
}
|