Skip to content

Commit 8687098

Browse files
committed
Fix publish handleSteps typing
1 parent 0176838 commit 8687098

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cli/src/commands/publish.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,15 @@ export async function handlePublish(agentIds: string[]): Promise<PublishResult>
148148
}
149149

150150
// Process the template for publishing
151-
const processedTemplate = { ...matchingTemplate }
151+
const processedTemplate = { ...matchingTemplate };
152152

153153
// Convert handleSteps function to string if present
154154
if (typeof (matchingTemplate as any).handleSteps === 'function') {
155-
const handleSteps = (matchingTemplate as any).handleSteps.toString()
156-
(processedTemplate as any).handleSteps = handleSteps
155+
const handleStepsValue = (matchingTemplate as any).handleSteps as (
156+
...args: any[]
157+
) => unknown;
158+
const handleStepsString = handleStepsValue.toString();
159+
(processedTemplate as any).handleSteps = handleStepsString;
157160
}
158161

159162
matchingTemplates[matchingTemplate.id] = processedTemplate

0 commit comments

Comments
 (0)