-
-
Notifications
You must be signed in to change notification settings - Fork 806
Scheduled tasks type on nitro options are incorrect #2283
Copy link
Copy link
Closed
Labels
Description
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
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).
Additional context
No response
Logs
No response
Reactions are currently unavailable