fix: make onError optional

This commit is contained in:
Eric Maciel 2021-01-08 17:31:02 -05:00
parent f425635cf8
commit 2faeda163b

View File

@ -28,7 +28,7 @@ export interface IAutomergeCollaborationOptions {
user: any user: any
) => Promise<void> | void ) => Promise<void> | void
onDisconnect?: (docId: string, user: any) => Promise<void> | void onDisconnect?: (docId: string, user: any) => Promise<void> | void
onError: (error: Error, data: ErrorData) => Promise<void> | void onError?: (error: Error, data: ErrorData) => Promise<void> | void
} }
export default class AutomergeCollaboration { export default class AutomergeCollaboration {