Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Resolves comment #80

Closed
wants to merge 1 commit into from

Conversation

SemenchenkoVitaliy
Copy link
Member

@SemenchenkoVitaliy SemenchenkoVitaliy added the feature PRs that add new features label Jun 27, 2019
@SemenchenkoVitaliy SemenchenkoVitaliy self-assigned this Jun 27, 2019
@@ -116,7 +116,15 @@ const asyncLambda = async () => {};

// Async functions are supported
// Returns: <Promise>
const asyncFunc = async function() {};
// Resolves: <Object>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to avoid adding keywords for such cases. I think it'll be better to allow to customize types:

// Returns: <Promise<{ a, b }>>
//   a <number>
//   b <string>

This would also allow to specify Map, Set types etc. (i.e. Map<string, number>, Set<string>).

@SemenchenkoVitaliy SemenchenkoVitaliy force-pushed the impl-resolves-comment branch 3 times, most recently from deee3da to 0322562 Compare July 4, 2019 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature PRs that add new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify type of data resolved by async functions
2 participants