(doc: Y.Doc, taskId: string, eventId: string)
| 242 | } |
| 243 | |
| 244 | function getActionEventMap(doc: Y.Doc, taskId: string, eventId: string): Y.Map<unknown> { |
| 245 | const event = getOrderedItemMap(doc, "task:events", eventId) |
| 246 | if (!event) throw new Error(`Event ${eventId} not found in task ${taskId}`) |
| 247 | if (event.get("type") !== "action") throw new Error(`Event ${eventId} is not an action event`) |
| 248 | return event |
| 249 | } |
| 250 | |
| 251 | function findActionEventForRuntime( |
| 252 | doc: Y.Doc, |
no test coverage detected