Skip to content

Commit

Permalink
fix: refine Fn type definition
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Oct 26, 2024
1 parent d39a236 commit c606212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type Task from '../src/task';
* the task function
*/
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
export type Fn = (...arg: unknown[]) => unknown | Promise<unknown>;
export type Fn = () => unknown | Promise<unknown>;

export interface FnOptions {
/**
Expand Down

0 comments on commit c606212

Please sign in to comment.