@types/sharedb 3.3.10 → 3.3.12
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 +6 -1
- sharedb/lib/sharedb.d.ts +2 -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: Tue, 30
|
|
11
|
+
* Last updated: Tue, 30 Jul 2024 16:38:51 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
|
-
|
|
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/lib/sharedb.d.ts
CHANGED
|
@@ -119,11 +119,13 @@ export interface Type {
|
|
|
119
119
|
invert?(op: any): any;
|
|
120
120
|
normalize?(op: any): any;
|
|
121
121
|
transformCursor?(cursor: any, op: any, isOwnOp: boolean): any;
|
|
122
|
+
transformPresence?<T>(presence: T, op: any, isOwnOp: boolean): T;
|
|
122
123
|
serialize?(snapshot: any): any;
|
|
123
124
|
deserialize?(data: any): any;
|
|
124
125
|
[key: string]: any;
|
|
125
126
|
}
|
|
126
127
|
export interface Types {
|
|
128
|
+
defaultType: Type;
|
|
127
129
|
register: (type: Type) => void;
|
|
128
130
|
map: { [key: string]: Type };
|
|
129
131
|
}
|
sharedb/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/sharedb",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.12",
|
|
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": "
|
|
49
|
-
"typeScriptVersion": "4.
|
|
48
|
+
"typesPublisherContentHash": "146ef826470232d7d8af2ca4cb9ab8d4f841b3bd044b7ee69ad4a87fdb97ca78",
|
|
49
|
+
"typeScriptVersion": "4.8"
|
|
50
50
|
}
|