Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

built-in typescript support #368

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SuperchupuDev
Copy link

Currently, TypeScript users have to install a separate package (@types/node-cron) to get type definitions. This PR adds built-in types copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node-cron/index.d.ts.

I believe this is a good idea for two reasons:

  • Breaking changes are easier to reflect in the types, since they're all in the same repo
  • TypeScript users no longer have to install a separate package. Great!

@theblackman2
Copy link

I'm currently working with typescript, and I think this is a good idea, no need to install another package for types support :)

@SuperchupuDev
Copy link
Author

@merencia any chance you can look into this anytime soon? having integrated TS types would be really nice and it's been 7 months since the PR was opened

@origooo
Copy link

origooo commented Nov 13, 2023

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants