Last active
August 25, 2016 07:44
-
-
Save frontdevops/bb0dab280635b23d17b234744e78edd8 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
namespace Singleton { | |
interface Instance { | |
foo: number; | |
} | |
const instance :Instance = { | |
foo: 123 | |
}; | |
export function getInstance() :Instance { | |
return instance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment