| 4 | import { ContentType, WSSharedDoc } from './types' |
| 5 | |
| 6 | export interface CallbackOptions { |
| 7 | action: (data: Record<string, any>) => void |
| 8 | timeout?: number |
| 9 | objects?: Record<string, ContentType> |
| 10 | } |
| 11 | |
| 12 | const callbackHandler = (doc: WSSharedDoc, options: CallbackOptions) => { |
| 13 | const { action, timeout = 5000, objects = {} } = options |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…