Mastra client js SDK types export missing

4 Replies
Mastra Triager
Mastra Triager2mo ago
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...
dero
dero2mo ago
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 Workflow
Unknown User
Unknown UserOP2mo ago
Message Not Public
Sign In & Join Server To View
dero
dero2mo ago
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 😀

Did you find this page helpful?