MCPcopy Create free account
hub / github.com/editablejs/editable / CallbackOptions

Interface CallbackOptions

packages/yjs-websocket/src/server/callback.ts:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { ContentType, WSSharedDoc } from './types'
5
6export interface CallbackOptions {
7 action: (data: Record<string, any>) => void
8 timeout?: number
9 objects?: Record<string, ContentType>
10}
11
12const callbackHandler = (doc: WSSharedDoc, options: CallbackOptions) => {
13 const { action, timeout = 5000, objects = {} } = options

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…