diff --git a/test/types/workerpool-tests.ts b/test/types/workerpool-tests.ts index 0732dc7..3247835 100644 --- a/test/types/workerpool-tests.ts +++ b/test/types/workerpool-tests.ts @@ -46,7 +46,7 @@ wp.pool({ workerThreadOpts, }), }); -const pool = wp.pool(); +const pool: wp.Pool = wp.pool(); pool.terminate() .then(() => pool.terminate()) .then(() => pool.terminate()) @@ -83,7 +83,7 @@ pool.exec(hello, []).then((s: string) => s); const workers = { add, hello }; type IWorkers = typeof workers; -pool.proxy().then(proxy => { +pool.proxy().then((proxy: wp.Proxy) => { proxy.add(1, 2); proxy.hello(); });