Skip to content

Commit

Permalink
chore: selectively disable convert-to-jsdoc-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashuber69 committed Jul 31, 2024
1 parent 76a1221 commit 5936b22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ObjectWorkerImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class ProxyImpl<C extends new (..._: never[]) => T, T extends MethodsOnlyObject<
this.#worker = worker;

for (const key of propertyNames) {
// The cast-fest below is necessary because there seems to be no way to transform the type of args to the
// parameter types of #worker.execute. The same goes for the type of the function.
this[key as string] = (async (...args: Parameters<Proxy<T>[keyof Proxy<T>]>) =>
// The cast-fest below is necessary because there seems to be no way to transform the type of args to
// the parameter types of #worker.execute. The same goes for the type of the function.
await this.#worker.execute(...(["call", key, ...args] as Parameters<CallSignature<T>>))
) as Proxy<T>[keyof Proxy<T>];
}
Expand Down
1 change: 1 addition & 0 deletions src/testHelpers/createCalculatorWorker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// https://github.com/andreashuber69/kiss-worker/blob/develop/README.md
/* eslint-disable jsdoc/convert-to-jsdoc-comments */

import { implementObjectWorker, Worker } from "../index.ts";

Expand Down
1 change: 1 addition & 0 deletions src/testHelpers/createFibonacciWorker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// https://github.com/andreashuber69/kiss-worker/blob/develop/README.md
/* eslint-disable jsdoc/convert-to-jsdoc-comments */

import { implementFunctionWorker, Worker } from "../index.ts";

Expand Down

0 comments on commit 5936b22

Please sign in to comment.