1
 2
 3
 4
 5
 6
 7
 8
 9
10
export namespace Singleton {
    export let varxx:any;
    export function someMethod() { ... }
    export async function someAsyncMethod(){...}
}
// Usage
import { SingletonInstance} from "path/to/Singleton";

SingletonInstance.someMethod();
var x = SingletonInstance; // If you need to alias it for some reason