Last active
October 22, 2018 06:37
-
-
Save ryancat/280b83b50d37d02c1ebd2855f0660dfc to your computer and use it in GitHub Desktop.
typescript migration demo
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
| var ModuleC = require('./ModuleC.js'); | |
| module.exports = { | |
| initModuleA: function (config) { | |
| this.config = config; | |
| }, | |
| log: function (message) { | |
| console.log('[ModuleA]', message); | |
| }, | |
| run: function () { | |
| var moduleC = new ModuleC(this.config); | |
| return 'ModuleA' + '-' + moduleC.run(); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment