convert module exports to typescript