
Currently if a function implicitly returns undefined (by leaving the function without an explicit return statement) we won't generate a check for it, e.g:
function foo (): string {
// no return
}
currently compiles to:
function foo () {
const _returnType = t.return(t.string());
// no return
}
We should insert a call to _returnType.assert(undefined) at these points.
IssueHunt Summary
Backers (Total: $20.00)
Submitted pull Requests
Tips
Currently if a function implicitly returns undefined (by leaving the function without an explicit
returnstatement) we won't generate a check for it, e.g:currently compiles to:
We should insert a call to
_returnType.assert(undefined)at these points.IssueHunt Summary
Backers (Total: $20.00)
Submitted pull Requests
Become a backer now!
Or submit a pull request to get the deposits!
Tips