Add TypeScript support
See original GitHub issueAs explained in this issue, the new node-cron
version had a breaking change.
The third param, of schedule
function, immediateStart
was removed and replaced by a options.
The behavior of immediateStart
was replaced by the option scheduled
.
So, to fix this issue we had two options:
1 - Update the lib https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-cron
2 - Introduce a typings on node-cron
project.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to set up TypeScript
You can use npm to install TypeScript globally, this means that you can use the tsc command anywhere in your terminal. To do...
Read more >How to Add TypeScript to a JavaScript Project
How to convert a JavaScript application to support TypeScript. · Install typescript · Typescript config file · Create your first .TS file in...
Read more >Add TypeScript support to an existing codebase | by Billel
Add TypeScript support to an existing codebase · Install typescript npm package and node type definitions. Just run npm i --save-dev typescript @types/node ......
Read more >Adding TypeScript
Global installs of create-react-app are no longer supported. To add TypeScript to an existing Create React App project, first install it:.
Read more >Adding TypeScript-support to your Node.js project
If your application already has build tooling set up via webpack, the easiest way to add TypeScript support is by using the ts-loader...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Typings would be great.
because I don’t want to expose the
scheduler
.For example, now I have something like this:
If I change that to methods I need to put the scheduler in the instance, the scheduler may be accessed through
scheduledTask.scheduler
.