Skip to content

Commit

Permalink
feat(typing): rely on GetStepTools<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
charlypoly committed Sep 27, 2024
1 parent a40a1b6 commit 31aead1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/workflow/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DirectedGraph } from "graphology";
import { TSchema } from "@sinclair/typebox";
import { type Inngest } from "inngest";
import { createStepTools } from "inngest/components/InngestStepTools";
import { type GetStepTools, type Inngest } from "inngest";

export interface EngineOptions {
actions?: Array<EngineAction>;
Expand Down Expand Up @@ -96,7 +95,7 @@ export interface EngineAction<TClient extends Inngest = Inngest>
* The handler is the function which runs the action. This may comprise of
* many individual inngest steps.
*/
handler: ActionHandler<ReturnType<typeof createStepTools<TClient>>>;
handler: ActionHandler<GetStepTools<TClient>>;
}

/**
Expand Down

0 comments on commit 31aead1

Please sign in to comment.