Skip to content

remove return type requirement of pbjs callback#1025

Merged
dcodeIO merged 3 commits intoprotobufjs:masterfrom
vuryleo:patch-1
May 18, 2018
Merged

remove return type requirement of pbjs callback#1025
dcodeIO merged 3 commits intoprotobufjs:masterfrom
vuryleo:patch-1

Conversation

@vuryleo
Copy link
Copy Markdown
Contributor

@vuryleo vuryleo commented Apr 25, 2018

The callback function of pbjs main should not enforce a return value.

The callback function of pbjs main should not enforce a return value.
@dcodeIO
Copy link
Copy Markdown
Member

dcodeIO commented Apr 30, 2018

Iirc, it may return an exit code, see. Not sure why it stated {}, hmm.

@vuryleo
Copy link
Copy Markdown
Contributor Author

vuryleo commented May 2, 2018

I re-read the code again, the return type is the function of pbjs.main, but not the callback function. Will revert the commit.

The type is not for the callback function,
@dcodeIO dcodeIO merged commit d4ff57a into protobufjs:master May 18, 2018
@dcodeIO
Copy link
Copy Markdown
Member

dcodeIO commented May 18, 2018

Thanks!

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.

2 participants