@ones-editor/editor 1.1.18-beta.16 → 1.1.18-beta.17

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.
@@ -42,7 +42,7 @@ export declare class AuthConnection {
42
42
  onAuthError(callback: (error: Error) => void): void;
43
43
  onAuthRecover(callback: () => void): void;
44
44
  onWriteConflictError(callback: (error: Error) => void): void;
45
- onMaxUsersError(callback: (error: Error) => void): void;
45
+ onMaxUsersError(callback: () => void): void;
46
46
  onRequestReloadError(callback: (error: Error) => void): void;
47
47
  end(logout: boolean): void;
48
48
  }
@@ -17,14 +17,13 @@ export default class ShareDBClient {
17
17
  onAuthError(callback: (error: Error) => void): void;
18
18
  onAuthRecover(callback: () => void): void;
19
19
  onWriteConflictError(callback: (error: Error) => void): void;
20
- onMaxUsersError(callback: (error: Error) => void): void;
20
+ onMaxUsersError(callback: () => void): void;
21
21
  onRequestReloadError(callback: (error: Error) => void): void;
22
22
  /**
23
23
  * 根据Id生成一个文档对象,如果文档不存在,则创建一个新的。
24
24
  * @param id 待获取的containerId
25
25
  */
26
26
  getDoc: () => Promise<Doc<any>>;
27
- fetchDoc: (doc: Doc) => Promise<void>;
28
27
  authOnly(): Promise<void>;
29
28
  getResourceToken(): string | null;
30
29
  hasDocContainer(): boolean;
@@ -71,6 +71,7 @@ export interface ShareDBDocOptions {
71
71
  autoCreateDoc?: boolean;
72
72
  templateData?: EditorDoc;
73
73
  disableLogout?: boolean;
74
+ onMaxUsersError?: () => void;
74
75
  }
75
76
  export interface EditorOp {
76
77
  c: string;