fix: errors due to typing change
This commit is contained in:
Родитель
41f628f2ba
Коммит
6eaac99157
|
@ -4,6 +4,7 @@ trigger:
|
|||
|
||||
jobs:
|
||||
- job: macOS
|
||||
timeoutInMinutes: 15
|
||||
pool:
|
||||
vmImage: 'macOS-10.15'
|
||||
steps:
|
||||
|
|
|
@ -24,7 +24,8 @@ const create = () => {
|
|||
|
||||
instance = fork(join(__dirname, 'hash.js'), [], { env: {}, silent: true, execArgv: [] });
|
||||
instance.setMaxListeners(Infinity);
|
||||
instance.addListener('message', msg => {
|
||||
instance.addListener('message', raw => {
|
||||
const msg = raw as HashResponse<HashRequest>;
|
||||
const deferred = deferredMap[msg.id];
|
||||
delete deferredMap[msg.id];
|
||||
deferred?.resolve(msg);
|
||||
|
|
Загрузка…
Ссылка в новой задаче