4 Replies
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/8058
GitHub
[DISCORD:1418988529333047369] Mastra client js SDK types export mis...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1418988529333047369 i am using this code: const myWorkflow: Workflow = await mastraClient.getWorkflow(work...
Hi @yairtheyair you do not need to type myWorkflow, it is automatically inferred.
Doing this
const myWorkflow = await mastraClient.getWorkflow(workflowId);
myWorkflow would be already typed WorkflowUnknown UserOP•2mo ago
Message Not Public
Sign In & Join Server To View
The myWorkflow
Workflow type in this context is not the core Workflow type b ut the client sdk Workflow class that houses workflow client SDK workflow methods. Doesn't seem so useful to re-export, unless you can convince me otherwise 😀