self.onmessage = (event: MessageEvent) => { self.postMessage(event.data + 1) }