@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 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, 20 Sep 2022 16:02:48 GMT
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
@@ -1,4 +1,4 @@
1
- // Type definitions for sharedb 3.0
1
+ // Type definitions for sharedb 3.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>
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.1",
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": "887fe69a5bcff16dcd51e689bd93d4d56fd0cf71a5ac779e77cbbcb7e43b06c7",
43
+ "typesPublisherContentHash": "128889450fb264e64c369c6c082088d5daf18e396a06b6ab83583065b9445f40",
44
44
  "typeScriptVersion": "4.1"
45
45
  }