Skip to content

Overloaded function "on" with "succeeded" event must contains "result: any" in the interface "Job"  #138

@triadium

Description

@triadium

Please, change
from

interface Job {
...
on(ev: "succeeded", fn: (err: Error) => void): this;

to

interface Job {
...
on(ev: "succeeded", fn: (result: any) => void): this;

Generics would work properly.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions