Modules don't allow exporting the whole module as a function in ES6: https://github.com/Microsoft/TypeScript/issues/5867#issuecomment-161119689 My suggestion for a fix is to export the function from the module instead of exporting the function as the module.