Skip to content

Instantly share code, notes, and snippets.

@olegdulin
Last active July 18, 2017 13:17
Show Gist options
  • Save olegdulin/d5d518286af9db3b46ff7baa28cad30d to your computer and use it in GitHub Desktop.
Save olegdulin/d5d518286af9db3b46ff7baa28cad30d to your computer and use it in GitHub Desktop.
Singleton in TypeScript
import * as mySingleton from './Singleton';
mySingleton.doSomething();
export function doSomething():void {
console.log("Hello world");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment