@types/sharedb 3.3.8 → 3.3.10

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,8 +8,8 @@ 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, 07 Nov 2023 15:11:36 GMT
11
+ * Last updated: Tue, 30 Jan 2024 16:36:59 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
15
- These definitions were written by [Steve Oney](https://github.com/soney), [Eric Hwang](https://github.com/ericyhwang), [Peter Xu](https://github.com/pxpeterxu), [Alec Gibson](https://github.com/alecgibson), and [Christina Burger](https://github.com/pypmannetjies).
15
+ These definitions were written by [Steve Oney](https://github.com/soney), [Eric Hwang](https://github.com/ericyhwang), [Peter Xu](https://github.com/pxpeterxu), [Alec Gibson](https://github.com/alecgibson), [Christina Burger](https://github.com/pypmannetjies), and [Craig Beck](https://github.com/craigbeck).
sharedb/index.d.ts CHANGED
@@ -26,26 +26,7 @@ declare class sharedb extends EventEmitter {
26
26
  readonly [name: string]: ReadonlyProjection;
27
27
  };
28
28
 
29
- constructor(options?: {
30
- db?: any;
31
- pubsub?: sharedb.PubSub;
32
- extraDbs?: { [extraDbName: string]: sharedb.ExtraDB };
33
- milestoneDb?: sharedb.MilestoneDB;
34
- suppressPublish?: boolean;
35
- maxSubmitRetries?: number;
36
- doNotForwardSendPresenceErrorsToClient?: boolean;
37
- errorHandler?: ErrorHandler;
38
-
39
- presence?: boolean;
40
- /**
41
- * @deprecated disableDocAction was removed in v1.0
42
- */
43
- disableDocAction?: boolean;
44
- /**
45
- * @deprecated disableSpaceDelimitedActions was removed in v1.0
46
- */
47
- disableSpaceDelimitedActions?: boolean;
48
- });
29
+ constructor(options?: sharedb.ShareDBOptions);
49
30
  /**
50
31
  * Creates a server-side connection to ShareDB.
51
32
  *
@@ -120,6 +101,27 @@ declare class sharedb extends EventEmitter {
120
101
  }
121
102
 
122
103
  declare namespace sharedb {
104
+ interface ShareDBOptions {
105
+ db?: any;
106
+ pubsub?: sharedb.PubSub;
107
+ extraDbs?: { [extraDbName: string]: sharedb.ExtraDB };
108
+ milestoneDb?: sharedb.MilestoneDB;
109
+ suppressPublish?: boolean;
110
+ maxSubmitRetries?: number;
111
+ doNotForwardSendPresenceErrorsToClient?: boolean;
112
+ errorHandler?: ErrorHandler;
113
+
114
+ presence?: boolean;
115
+ /**
116
+ * @deprecated disableDocAction was removed in v1.0
117
+ */
118
+ disableDocAction?: boolean;
119
+ /**
120
+ * @deprecated disableSpaceDelimitedActions was removed in v1.0
121
+ */
122
+ disableSpaceDelimitedActions?: boolean;
123
+ }
124
+
123
125
  abstract class DB {
124
126
  projectsSnapshots: boolean;
125
127
  disableSubscribe: boolean;
@@ -1,6 +1,6 @@
1
- /// <reference path="sharedb.d.ts" />
2
- import * as ShareDB from "./sharedb";
3
- import Agent = require("./agent");
1
+ /// <reference path="../sharedb.d.ts" />
2
+ import * as ShareDB from "../sharedb";
3
+ import Agent = require("../agent");
4
4
 
5
5
  export class Connection extends ShareDB.TypedEmitter<ShareDB.ConnectionEventMap> {
6
6
  constructor(ws: ShareDB.Socket);
@@ -99,7 +99,7 @@ export {
99
99
  StringDeleteOp,
100
100
  StringInsertOp,
101
101
  SubtypeOp,
102
- } from "./sharedb";
102
+ } from "../sharedb";
103
103
 
104
104
  export const types: ShareDB.Types;
105
105
  export const logger: ShareDB.Logger;
sharedb/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedb",
3
- "version": "3.3.8",
3
+ "version": "3.3.10",
4
4
  "description": "TypeScript definitions for sharedb",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharedb",
6
6
  "license": "MIT",
@@ -29,6 +29,11 @@
29
29
  "name": "Christina Burger",
30
30
  "githubUsername": "pypmannetjies",
31
31
  "url": "https://github.com/pypmannetjies"
32
+ },
33
+ {
34
+ "name": "Craig Beck",
35
+ "githubUsername": "craigbeck",
36
+ "url": "https://github.com/craigbeck"
32
37
  }
33
38
  ],
34
39
  "main": "",
@@ -40,6 +45,6 @@
40
45
  },
41
46
  "scripts": {},
42
47
  "dependencies": {},
43
- "typesPublisherContentHash": "e15905898191aa1cb6b02cdf31c6a8f0f2fe8a59ba52924fc0a222f7eab6291b",
44
- "typeScriptVersion": "4.5"
48
+ "typesPublisherContentHash": "3407310dc72b01cb42063c03eba37e92c28d87aa2e6ce8338a4e463a5b9b8454",
49
+ "typeScriptVersion": "4.6"
45
50
  }