Skip to content

Commit

Permalink
fix: Fixed return type of the CreateMethod (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh authored May 2, 2024
1 parent 292dc0b commit 2b79b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pulse/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Job, JobAttributesData } from '../job';

const debug = createDebugger('pulse:create');

export type CreateMethod = <T extends JobAttributesData>(name: string, data: T) => Job;
export type CreateMethod = <T extends JobAttributesData>(name: string, data: T) => Job<T>;
/**
* Given a name and some data, create a new job
* @name Pulse#create
Expand Down

0 comments on commit 2b79b7b

Please sign in to comment.