(id: number, result: ExtractionResult, parseMs?: number)
| 38 | // 'error' unused by the fakes |
| 39 | } |
| 40 | private reply(id: number, result: ExtractionResult, parseMs?: number): void { |
| 41 | if (this.alive) this.msgCb?.({ type: 'parse-result', id, result, parseMs }); |
| 42 | } |
| 43 | postMessage(msg: unknown): void { |
| 44 | const m = msg as { type: string } & Partial<ParseMsg>; |
| 45 | if (m.type === 'load-grammars') { |