documentation
documentation copied to clipboard
[Foundations] Activity return values is missing in TypeScript
Activity return values is missing is TypeScript
You can provide a code snippet in the comments or a link to the line numbers of the samples-repo. Once added, I'll update the app-dev page with the new code snippet.
return values:
In TS, the return value is always a Promise. In this snippet, it's Promise<string>
:
typescript-activity-fn
Suggested change to Customize Activity Type
section:
Activity Type
Activities have a Type (also referred to as the Activity name).
TS tab:
In TS, the Activity Type is the Activity function name. In this snippet, the Type is "greet"
typescript-activity-fn