@types/sharedb 3.3.10 → 3.3.11

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.
Files changed (3) hide show
  1. sharedb/README.md +1 -1
  2. sharedb/index.d.ts +6 -1
  3. 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: Tue, 30 Jan 2024 16:36:59 GMT
11
+ * Last updated: Tue, 02 Jul 2024 16:38:39 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
sharedb/index.d.ts CHANGED
@@ -221,7 +221,12 @@ declare namespace sharedb {
221
221
  private _removeStream(channel, stream): void;
222
222
  }
223
223
 
224
- abstract class MilestoneDB {
224
+ interface MilestoneDBEventMap {
225
+ "error": (error: Error) => void;
226
+ "save": (collection: string, snapshot: Snapshot) => void;
227
+ }
228
+
229
+ abstract class MilestoneDB extends ShareDB.TypedEmitter<MilestoneDBEventMap> {
225
230
  close(callback?: BasicCallback): void;
226
231
  getMilestoneSnapshot(collection: string, id: string, version: number, callback?: BasicCallback): void;
227
232
  saveMilestoneSnapshot(collection: string, snapshot: Snapshot, callback?: BasicCallback): void;
sharedb/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedb",
3
- "version": "3.3.10",
3
+ "version": "3.3.11",
4
4
  "description": "TypeScript definitions for sharedb",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharedb",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "3407310dc72b01cb42063c03eba37e92c28d87aa2e6ce8338a4e463a5b9b8454",
49
- "typeScriptVersion": "4.6"
48
+ "typesPublisherContentHash": "8f3b25ddc3f162745d0c748500548b97527227e1c1822c015bd9002b5a22bc2f",
49
+ "typeScriptVersion": "4.8"
50
50
  }