| 63 | }; |
| 64 | |
| 65 | export interface WorkerEvents { |
| 66 | 'internal/handshake/done': void; |
| 67 | 'internal/operation/done': { |
| 68 | operationId: string; |
| 69 | listenerPayload: unknown; |
| 70 | }; |
| 71 | 'internal/operation/failed': { |
| 72 | operationId: string; |
| 73 | error: Error; |
| 74 | }; |
| 75 | 'runtime/ready': void; |
| 76 | 'worker/progress': { |
| 77 | workerId?: string; |
| 78 | status: WorkerStatusUpdate; |
| 79 | }; |
| 80 | 'worker/tty': { |
| 81 | workerId: string; |
| 82 | payload: { |
| 83 | data: string; |
| 84 | type: 'out' | 'err'; |
| 85 | }; |
| 86 | }; |
| 87 | 'worker/exit': { |
| 88 | workerId: string; |
| 89 | exitCode: number; |
| 90 | error?: { |
| 91 | message: string; |
| 92 | }; |
| 93 | }; |
| 94 | 'preview/port/ready': PreviewInfo; |
| 95 | 'fs/watch-event': FSWatchEvent; |
| 96 | } |
| 97 | |
| 98 | type OperationEvent<Payload> = Payload & { |
| 99 | operationId: string; |
nothing calls this directly
no outgoing calls
no test coverage detected