typescript module tested on example