Skip to content

lib: expose tsParse as util.stripTypescriptTypes

Rodrigo Muino Tomonari requested to merge github/fork/stagas/expose-tsparse into main

This PR exposes internal/modules/helpers/tsParse as util.stripTypescriptTypes in order to transpile/strip types from TypeScript code without bringing in another dependency, since it's already there.

All details are in flux, I just picked the quickest solution I could come up with, but I wanted to bring it here for discussion.

Primary use-case would be transpiling modules to serve to the client from a pure node server without bringing in dependencies.

Merge request reports

Loading