Skip to content

Commit c606212

Browse files
committed
fix: refine Fn type definition
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
1 parent d39a236 commit c606212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type Task from '../src/task';
44
* the task function
55
*/
66
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
7-
export type Fn = (...arg: unknown[]) => unknown | Promise<unknown>;
7+
export type Fn = () => unknown | Promise<unknown>;
88

99
export interface FnOptions {
1010
/**

0 commit comments

Comments
 (0)