Skip to content

Commit

Permalink
refactor: refactor JobAttributes interface to use 'any' type for the …
Browse files Browse the repository at this point in the history
…'data' property in index.ts
  • Loading branch information
code-xhyun committed Apr 15, 2024
1 parent 48916da commit 40ded49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/job/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface JobAttributes<T extends JobAttributesData = JobAttributesData>
/**
* The job details.
*/
data: T | any;
data: any;

uniqueQuery?: any;
uniqueOpts?: {
Expand Down
4 changes: 2 additions & 2 deletions src/pulse/create.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import createDebugger from 'debug';
import { Pulse } from '.';
import { Job, JobAttributesData } from '../job';
import { Job } from '../job';

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

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

0 comments on commit 40ded49

Please sign in to comment.