Is there a plugin (like for Gulp) where I can parse a typescript file and read out single parts (like a member, a function, comments), etc.
So that I have a class like t
Jed mao has an excellent (but under appreciated) project that open's up the TypeScipt compiler api for commonjs consumption : https://www.npmjs.org/package/typescript-api
It ships with a definition file : https://github.com/jedmao/typescript-api/blob/master/typescript-api.d.ts
The logic inside it is blatantly simple : https://github.com/jedmao/typescript-api/blob/master/wrapper.js#L15-L28 it bascially just opens up tsc.js
with a module.exports = TypeScript;
You will basically need to investigate how TypeScript does its work. But PullTypeSymbol
which has public getMembers(): PullSymbol[];
seems to be in the worth searching in the TypeScript Source code (https://typescript.codeplex.com/)