@types/sharedb 3.0.1 → 3.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 +1 -1
- sharedb/lib/client.d.ts +2 -0
- sharedb/lib/sharedb.d.ts +1 -0
- 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: Tue,
|
|
11
|
+
* Last updated: Tue, 27 Sep 2022 17:33:16 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
sharedb/index.d.ts
CHANGED
sharedb/lib/client.d.ts
CHANGED
|
@@ -53,6 +53,8 @@ export class Connection extends ShareDB.TypedEmitter<ShareDB.ConnectionEventMap>
|
|
|
53
53
|
* etc., which will manage the necessary message exchanges.
|
|
54
54
|
*/
|
|
55
55
|
send(message: Record<string, unknown>): void;
|
|
56
|
+
|
|
57
|
+
ping(): void;
|
|
56
58
|
}
|
|
57
59
|
export type Doc<T = any> = ShareDB.Doc<T>;
|
|
58
60
|
export type Snapshot<T = any> = ShareDB.Snapshot<T>;
|
sharedb/lib/sharedb.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ export type ConnectionEventMap = ConnectionStateEventMap & {
|
|
|
149
149
|
'connection error': (error: Error) => void;
|
|
150
150
|
'doc': (doc: Doc) => void;
|
|
151
151
|
'error': (error: Error) => void;
|
|
152
|
+
'pong': () => void;
|
|
152
153
|
'receive': (request: ConnectionReceiveRequest) => void;
|
|
153
154
|
'send': (message: any) => void;
|
|
154
155
|
'state': (newState: ConnectionState, reason: string) => void;
|
sharedb/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/sharedb",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.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": "128889450fb264e64c369c6c082088d5daf18e396a06b6ab83583065b9445f40",
|
|
44
44
|
"typeScriptVersion": "4.1"
|
|
45
45
|
}
|