diff --git a/example/convex/passingSignals.ts b/example/convex/passingSignals.ts index c6b947b..aec92e3 100644 --- a/example/convex/passingSignals.ts +++ b/example/convex/passingSignals.ts @@ -1,7 +1,11 @@ -import { vWorkflowId, WorkflowManager } from "@convex-dev/workflow"; +import { + type EventId, + vEventId, + vWorkflowId, + WorkflowManager, +} from "@convex-dev/workflow"; import { components, internal } from "./_generated/api"; import { internalMutation } from "./_generated/server"; -import { vEventId } from "../../src/types"; const workflow = new WorkflowManager(components.workflow); @@ -23,7 +27,7 @@ export const signalBasedWorkflow = workflow.define({ export const createSignal = internalMutation({ args: { workflowId: vWorkflowId }, - handler: async (ctx, args) => { + handler: async (ctx, args): Promise => { const eventId = await workflow.createEvent(ctx, { name: "signal", workflowId: args.workflowId, diff --git a/src/client/index.ts b/src/client/index.ts index c2ced62..4618eca 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -36,8 +36,10 @@ import type { WorkflowCtx } from "./workflowContext.js"; import { workflowMutation } from "./workflowMutation.js"; export { + vEventId, vWorkflowId, vWorkflowStep, + type EventId, type WorkflowId, type WorkflowStep, } from "../types.js";