Closed noook closed 4 months ago
Nitro 2.9
— (I'll do the PR)
https://github.com/unjs/nitro/blob/8a62e7dbaeeffb6dff533c7000aba51a5c85e479/src/types/nitro.ts#L342
The types are incorrect, it should be
scheduledTasks?: { [cron: string]: string[] };
I think maybe of having to handle the undefined case when we have no scheduled tasks, we could just make this property be an empty object as default (as it's assignable).
No response
Thanks for helping on this but please either make a proposal for enhancement and wait for discussion or an issue with reproduction next times 🙏🏼
Environment
Nitro 2.9
Reproduction
— (I'll do the PR)
Describe the bug
https://github.com/unjs/nitro/blob/8a62e7dbaeeffb6dff533c7000aba51a5c85e479/src/types/nitro.ts#L342
The types are incorrect, it should be
I think maybe of having to handle the undefined case when we have no scheduled tasks, we could just make this property be an empty object as default (as it's assignable).
Additional context
No response
Logs
No response