Skip to content

Type-level CRON expressions validation #820

@alexvictoor

Description

@alexvictoor

⭐ Suggestion

Hello!
Thanks a lot for this great library!
Would you be interested by a PR adding type-level validation to CRON expressions?
I have already built a type level validator that seems to worked well with node-cron.
Happy to discuss any issue and eager to get feedback.

💻 Use Cases

No response

❌ Related Problems

I am using node-cron at my day job.
Although we are quite fans of TDD in my team, the cron job configuration code is not covered by tests. One day I was in a hurry to push some batch changes... one of the cron expressions was invalid :(
Would be great if this kind of accident could be avoided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or feature improvement & requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions