microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.58k stars 12.43k forks source link

Consider exporting 'getOwnEmitOutputFilePath' #4320

Open DanielRosenwasser opened 9 years ago

DanielRosenwasser commented 9 years ago

Courtesy of @ivogabe on Gitter on August 14, 2015 5:26 AM:

Question about the API, is there an exported method that returns the output filename of a source file? It should follow the options outDir & rootDir of course.

ivogabe commented 9 years ago

I've taken a look at this and found some other functions (like isExpression, isFunctionLike) that I can use in my project. I actually (re)implemented some of them already in my project, but I'd prefer to use the TypeScript api of course. Can these be exported? I exported them in PR #4377.