Skip to content

Conversation

@dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Sep 11, 2021

Fixes #2061 by allowing explicit void returns if the return type is void

function functionReturningVoid(): void {
  return someFunctionReturningVoid();
}

including arrow functions with the same properties

(): void => someFunctionReturningVoid()
  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@dcodeIO dcodeIO merged commit 63c1e85 into main Sep 11, 2021
@dcodeIO dcodeIO deleted the issue-2061 branch September 14, 2021 12:21
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.

Allow to accept void types in callbacks

2 participants