serverlessworkflow / sdk-typescript

Typescript SDK for Serverless Workflow
https://serverlessworkflow.io/
Apache License 2.0
62 stars 16 forks source link

Missing type when using subflowstateBuilder #92

Closed JBBianchi closed 3 years ago

JBBianchi commented 3 years ago

What happened: subflowstateBuilder.build() doesn't assign a default type to the returned subflowstate.

What you expected to happen: The returned subflowstate should have the type subflow is none is supplied

How to reproduce it:

const sf= subflowstateBuilder().build();
console.log(sf.type);

Anything else we need to know?: Will be fixed in an upcoming PR