-
Notifications
You must be signed in to change notification settings - Fork 93
workflow: stub workflow/api package so it can be referenced in a workflow context #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: eccd473 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
fb54558 to
77f015c
Compare
…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>
77f015c to
ee3d29e
Compare
There was a problem hiding this 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 buildResult:
src/api-workflow.ts(15,15): error TS6133: 'runId' is declared but its value is never read.
cedbade to
2c4eb65
Compare
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com> Signed-off-by: Gal Schlezinger <gal@spitfire.co.il>
2c4eb65 to
eccd473
Compare
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.