Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.
We encourage you to submit a pull request with a failing test:
1) This will make it more likely for us to prioritize your issue.
2) It's a good way to prove that the issue is related to this project and not your code.
Describe the bug
Node.js version: 19
OS version: Windows 11
Description: I'm using Bree with cron and can't be mixed with an interval. You need to make interval and timeout optional.
Actual behavior
Type '{ name: string; cron: string; path: string; worker: { workerData: { account_id: number; amount: number; description: string; }; }; }' is missing the following properties from type 'Job': timeout, interval
Expected behavior
Error shouldn't be there
Code to reproduce
We encourage you to submit a pull request with a failing test:
1) This will make it more likely for us to prioritize your issue. 2) It's a good way to prove that the issue is related to this project and not your code.
Example: https://github.com/avajs/ava/blob/master/docs/01-writing-tests.md#failing-tests -->
Checklist