If you know how to fix the issue, make a pull request instead.
@types/xxxx package and had problems.Definitions by: in index.d.ts) so they can respond.Hello,
var { job } = require('cron')
job('* * * * * *', () => { run() }, null, true)
this makes a typescript error in vscode:
Argument of type '"* * * * * *"' is not assignable to parameter of type '(string & CronJobParameters) | (Date & CronJobParameters) | (Moment & CronJobParameters)'.ts(2345)
@francoisromain wrong package. You mentioned authors of types for node-cron (https://github.com/node-cron/node-cron) and you're using cron (https://github.com/kelektiv/node-cron). You either installed wrong types (are you using @types/cron?) or just mentioned wrong authors
Oups. I edited the message to fix it. I hope authors will receive a mention.
Just to be sure: @horiuchi @WinUP, someone needs you! :D
@francoisromain A pull request was raised to solve this issue.
Most helpful comment
Oups. I edited the message to fix it. I hope authors will receive a mention.