Created
January 25, 2016 22:43
-
-
Save ssadler/5478d928a3887ebb5133 to your computer and use it in GitHub Desktop.
purescript export class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| // I would like to export a class from Purescript like below. | |
| class MyObjectFromPurescript { | |
| constructor(n) { | |
| this.n = n | |
| } | |
| getN() { | |
| return this.n; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment