module: refactor ts parser loading
This PR refactors the way TypeScript parser is loaded.
Currently the function loadTypeScriptParser
is not exposed but could allow overriding the default parsing options, so that an external version of amaro could be used.
It also changes the parse
signature to take only the code string input and return { code }
.