Skip to content

Infer membership should support Revealing Module Pattern #323

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

Closed
carbonrobot opened this issue Dec 30, 2015 · 0 comments
Closed

Infer membership should support Revealing Module Pattern #323

carbonrobot opened this issue Dec 30, 2015 · 0 comments

Comments

@carbonrobot
Copy link
Contributor

Membership should be inferred when using the revealing module pattern.

/**
 * Calculator module
 */
function Calculator() {

    /**
     * Add two numbers
     * @param {number} x - The first number
     * @param {number} y - The second number
     * @returns The sum of the arguments
     */
    function add(x, y) {
        return x+y;
    }

    /**
     * Creates a magical unicorn
     * @private
     */
    function somethingPrivate(){
        // something
    }

    return {
        add: add
    };
}
@tmcw tmcw closed this as completed in dd076d7 Jan 3, 2016
rhendric pushed a commit to rhendric/documentation that referenced this issue Sep 15, 2022
* Add troubleshooting section

Boosting heading sizes too so they're slightly larger than bold text.

* Review feedback - move troubleshooting steps to install guide

Related to purescript/purescript#3903

* Simplify installation instructions
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

No branches or pull requests

1 participant