Created
August 25, 2016 07:52
-
-
Save frontdevops/c7bf1952b3e6f91a3ceb03da5922a95b to your computer and use it in GitHub Desktop.
This file contains 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
module Singleton { | |
class Instance { | |
constructor(public foo: number = 123) {} | |
} | |
let instance = new Instance; | |
export function getInstance() :Instance { | |
return instance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment