Skip to content

Add return type for function#20

Open
moulik-deepsource wants to merge 2 commits intoMinecodes:masterfrom
moulik-deepsource:moulik-deepsource-patch-1
Open

Add return type for function#20
moulik-deepsource wants to merge 2 commits intoMinecodes:masterfrom
moulik-deepsource:moulik-deepsource-patch-1

Conversation

@moulik-deepsource
Copy link

I noticed that you have reported a false positive for JS-0306: Missing explicit return and argument types for this occurrence with the comment :

" Because this function doesn't need an callback. "

We must specify return types as void when it is not returning any value because not specifying type will take the whole point of using types in the first place.

We must specify return types as `void` when it is not returning any value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant