documentalist icon indicating copy to clipboard operation
documentalist copied to clipboard

Do we support line numbers for TypeScript?

Open blendsdk opened this issue 7 years ago • 1 comments

Hi,

I was wondering if there is a way to extract the line-numbers of the methods, classes, and interfaces. within a TypeScript file?

Thanks.

blendsdk avatar Dec 25 '18 11:12 blendsdk

@blendsdk hmm that information is not currently provided in a friendly way but you could extract it from the sourceUrl (see #L9 at the end): https://github.com/palantir/documentalist/blob/master/src/tests/snapshots/typescript.test.ts.snap#L53

line number fields could easily be added, though!

giladgray avatar Dec 31 '18 21:12 giladgray