Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.
.../types/index.d.ts:9:29 - error TS2370: A rest parameter must be of an array type.
9 type AsyncFunction<A, O> = (...args: A) => Promise<O>;
~~~~~~~~~~
So enforce the parameter to be some kind of array.
Checklist
[x] I have ensured my pull request is not behind the main or master branch of the original repository.
[x] I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
[x] I have written a commit message that passes commitlint linting.
[x] I have ensured that my code changes pass linting tests.
[x] I have ensured that my code changes pass unit tests.
[x] I have described my pull request and the reasons for code changes along with context if necessary.
The error was:
So enforce the parameter to be some kind of array.
Checklist