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

Add module() as a union type of callback() #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikebeam
Copy link

@mikebeam mikebeam commented Oct 2, 2013

According to to sockjs_session:emit/2, the callback can be a module name, which is how our code uses sockjs_handler:init_state/4. The definition of the callback() type as only a fun results in a number of dialyzer warnings, which are resolved by this change.

@saurik
Copy link

saurik commented Apr 21, 2014

The type signature of the function isn't correct anyway: it should be {ok, any()}, not just ok :/.

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