Typescript Export Const Function Cpp