@types/sharedb 3.3.3 → 3.3.5

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: Mon, 25 Sep 2023 13:39:06 GMT
11
+ * Last updated: Fri, 13 Oct 2023 07:36:07 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
sharedb/lib/sharedb.d.ts CHANGED
@@ -174,11 +174,12 @@ export class Doc<T = any> extends TypedEmitter<DocEventMap<T>> {
174
174
 
175
175
  ingestSnapshot(snapshot: Pick<Snapshot<T>, "v" | "type" | "data">, callback?: Callback): void;
176
176
  destroy(callback?: Callback): void;
177
- create(data: any, callback?: Callback): void;
178
- create(data: any, type?: string, callback?: Callback): void;
179
- create(data: any, type?: string, options?: ShareDBSourceOptions, callback?: Callback): void;
177
+ create(data: T, callback?: Callback): void;
178
+ create(data: T, type?: string, callback?: Callback): void;
179
+ create(data: T, type?: string, options?: ShareDBSourceOptions, callback?: Callback): void;
180
180
  submitOp(data: any, options?: ShareDBSourceOptions, callback?: Callback): void;
181
- del(options: ShareDBSourceOptions, callback?: (err: Error) => void): void;
181
+ del(callback?: Callback): void;
182
+ del(options?: ShareDBSourceOptions, callback?: Callback): void;
182
183
  whenNothingPending(callback: () => void): void;
183
184
  hasPending(): boolean;
184
185
  hasWritePending(): boolean;
sharedb/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedb",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
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": "fbdde692ba5d7c2298eab1e8814a3ef9d18fc67251c2b9b0c9aeb678c3be4740",
43
+ "typesPublisherContentHash": "c4e07675910d7c9953cad2d42597e5fdee670c92a537e56a0f99c636b04bdd47",
44
44
  "typeScriptVersion": "4.5"
45
45
  }