documentation icon indicating copy to clipboard operation
documentation copied to clipboard

[Foundations] Activity return values is missing in TypeScript

Open rachfop opened this issue 2 years ago • 1 comments

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.

rachfop avatar Aug 18 '22 19:08 rachfop

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

lorensr avatar Aug 26 '22 17:08 lorensr