I think the idea is to create a "Utils" module, attach all the functions and / or classes to it, export them and then export them, for example
module Utils {
export function add(first:number, second:number):number {
return first+second
}
}
export = Utils
Although I haven't played with the es6 module syntax in typescript yet, as you seem to mean using it.
source
share