reg2005 / adonis5-scheduler

This library provides an easy way to schedule recurring tasks for AdonisJS 5
MIT License
49 stars 11 forks source link

No types #18

Closed hadnet closed 1 year ago

hadnet commented 3 years ago

Description

When using

import {BaseTask} from 'adonis5-scheduler/build';

IDE says could not find a declaration file for module 'adonis5-scheduler/build'

Package version

2.0.2

Error Message & Stack Trace

Could not find a declaration file for module 'adonis5-scheduler/build'. '.../node_modules/adonis5-scheduler/build/index.js' implicitly has an 'any' type.

Relevant Information

Adonis 5.1.8

davidlandais commented 2 years ago

Have you found a workaround ?

antoniosilva000000 commented 2 years ago

Any solution?

palfaro91 commented 1 year ago

Has anyone found a solution?

reg2005 commented 1 year ago

Just use import { BaseTask } from 'adonis5-scheduler/build/src/Scheduler/Task'

instead of import {BaseTask} from 'adonis5-scheduler/build';

The template for node ace make:task has been fixed, you can update the package