Skip to content

Commit

Permalink
T -> TOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Oct 3, 2024
1 parent 94f1fcb commit f614cae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/keyAutoAdd/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ export interface StepRunHelpers {
output: <T extends StepRun>(fn: T) => Awaited<ReturnType<T>>;
}

export type StepRun<T = unknown> = (
export type StepRun<TOutput = unknown> = (
payload: BeginPayload,
helpers: StepRunHelpers,
) => Promise<T>;
) => Promise<TOutput>;

export interface Step<T = unknown> {
export interface Step<TOutput = unknown> {
name: string;
run: StepRun<T>;
run: StepRun<TOutput>;
maxDuration?: number;
}

Expand Down

0 comments on commit f614cae

Please sign in to comment.