Skip to content

Conversation

@Schniz
Copy link
Collaborator

@Schniz Schniz commented Nov 10, 2025

what's not allowed is to call these functions, so let's stub them and make them fail in runtime.
i guess that eventually we will actually implement some of them (start or resumeHook or whatever) in a durable way.

@Schniz Schniz self-assigned this Nov 10, 2025
@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2025

🦋 Changeset detected

Latest commit: eccd473

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
workflow Patch
@workflow/ai Patch
@workflow/world-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Comment Nov 10, 2025 5:20pm
example-nextjs-workflow-webpack Ready Ready Preview Comment Nov 10, 2025 5:20pm
example-workflow Ready Ready Preview Comment Nov 10, 2025 5:20pm
workbench-nitro-workflow Ready Ready Preview Comment Nov 10, 2025 5:20pm
workbench-nuxt-workflow Ready Ready Preview Comment Nov 10, 2025 5:20pm
workbench-sveltekit-workflow Ready Ready Preview Comment Nov 10, 2025 5:20pm
workbench-vite-workflow Ready Ready Preview Comment Nov 10, 2025 5:20pm
workflow-docs Ready Ready Preview Comment Nov 10, 2025 5:20pm

…flow context

what's not allowed is to call these functions, so let's stub them and make them fail in runtime.
i guess that eventually we will actually implement some of them (start or resumeHook or whatever) in a durable way.

Signed-off-by: Gal Schlezinger <gal@spitfire.co.il>
Signed-off-by: Gal Schlezinger <gal@spitfire.co.il>
Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The runId parameter in the Run class constructor is declared but never used, causing a TypeScript error TS6133.

View Details
📝 Patch Details
diff --git a/packages/workflow/src/api-workflow.ts b/packages/workflow/src/api-workflow.ts
index a54c381..c2f4d26 100644
--- a/packages/workflow/src/api-workflow.ts
+++ b/packages/workflow/src/api-workflow.ts
@@ -12,7 +12,7 @@ const workflowStub = (item: string) => {
 };
 
 export class Run {
-  constructor(runId?: string) {
+  constructor(_runId?: string) {
     workflowStub('Run');
   }
 }

Analysis

TypeScript unused parameter error in Run constructor

What fails: TypeScript compiler fails on packages/workflow/src/api-workflow.ts line 15 due to unused parameter runId in Run class constructor

How to reproduce:

cd packages/workflow && pnpm run build

Result:

src/api-workflow.ts(15,15): error TS6133: 'runId' is declared but its value is never read.
Fix on Vercel

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
Signed-off-by: Gal Schlezinger <gal@spitfire.co.il>
@Schniz Schniz marked this pull request as ready for review November 12, 2025 09:16
@Schniz Schniz merged commit 9335026 into main Nov 12, 2025
50 of 55 checks passed
@Schniz Schniz deleted the schniz/stub-workflow-api-package branch November 12, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants