Package Exports
- ts-structure-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ts-structure-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TypeScript Structural Parser
This repository provides a parser for *.ts
files. It parses the structure of a file and provides JSON object that contains its declaration.
Installation
npm install ts-structure-parser --save
Usage
import tsstruct=require("ts-structure-parser")
var filePath=path.resolve(path.resolve(__dirname,"src/"),"typescript-file.ts");
var decls=fs.readFileSync(filePath).toString();
var jsonStructure=tsstruct.parseStruct(decls,{},filePath);