mirror of
https://github.com/cudr/slate-collaborative.git
synced 2024-10-27 20:34:06 +00:00
fix: make onError optional
This commit is contained in:
parent
f425635cf8
commit
2faeda163b
@ -28,7 +28,7 @@ export interface IAutomergeCollaborationOptions {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user