You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
538 B
20 lines
538 B
import { ValueJSON } from 'slate'
|
|
import { Server } from 'http'
|
|
|
|
export interface ConnectionOptions {
|
|
entry: number | Server
|
|
connectOpts?: SocketIO.ServerOptions
|
|
defaultValue?: ValueJSON
|
|
saveTreshold?: number
|
|
cursorAnnotationType?: string
|
|
onAuthRequest?: (
|
|
query: Object,
|
|
socket?: SocketIO.Socket
|
|
) => Promise<boolean> | boolean
|
|
onDocumentLoad?: (
|
|
pathname: string,
|
|
query?: Object
|
|
) => ValueJSON | null | false | undefined
|
|
onDocumentSave?: (pathname: string, json: ValueJSON) => Promise<void> | void
|
|
}
|