Giter Club home page Giter Club logo

Comments (4)

Hexagon avatar Hexagon commented on May 14, 2024 1

Will have a look at that until next release! The typescript definitions isn't widely used yet, i think. So all issue reports are appreciated! 👍

from croner.

Hexagon avatar Hexagon commented on May 14, 2024 1

Just tested it myself, and this is a tricky one. Will consider changing the interface to support such strict rules from 5.0. But for now, as it works fine with default typescript-eslint rules, I just added a note under https://github.com/Hexagon/croner#installation. Thanks!

from croner.

Hexagon avatar Hexagon commented on May 14, 2024

@albertosantini I just got an idea, if you use new Cron instead of just Cron, do the message disappear? Cron without new is just a shortcut.

See the TypeScript example just below https://github.com/Hexagon/croner#nodejs

from croner.

albertosantini avatar albertosantini commented on May 14, 2024

Yes, it is gone but

Do not use 'new' for side effects. due to no-new setting.

Sorry. I have been using a quite strict configuration:
https://github.com/eslint/eslint/blob/main/packages/eslint-config-eslint/default.yml

Resolved with

const cron = require("croner");

// @ts-ignore
cron("1 25 5 * * *", {
    timezone: "Europe/Rome"
}, () => {
    run();
});

from croner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.