Skip to content

Commit

Permalink
chore: minor edit for type tests (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Dec 21, 2023
1 parent 9295847 commit f37cc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/types/workerpool-tests.ts
Expand Up @@ -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())
Expand Down Expand Up @@ -83,7 +83,7 @@ pool.exec(hello, []).then((s: string) => s);

const workers = { add, hello };
type IWorkers = typeof workers;
pool.proxy<IWorkers>().then(proxy => {
pool.proxy<IWorkers>().then((proxy: wp.Proxy<IWorkers>) => {
proxy.add(1, 2);
proxy.hello();
});
Expand Down

0 comments on commit f37cc7b

Please sign in to comment.