Web Workers, comlink, TypeScript and React