Is there a way to compile a String containing TypeScript, my equivalent JavaScript String ?
For example, in Coffeescript (and LiveScript, coco, etc.) its (simplified) single-line:
jsCompiledCode = require('coffee-script').compile('do -> console.log "Hello world"', {bare:true});
Could something like this be implemented for TypeScript, preferably without involving a file system? Are there any consequences for references to other modules that would need to be resolved at compile time?
source share