Skip to content

Instantly share code, notes, and snippets.

View crissmoldovan's full-sized avatar

Cristian Moldovan crissmoldovan

View GitHub Profile
@crissmoldovan
crissmoldovan / parse.js
Created September 17, 2020 21:52 — forked from RoystonS/parse.js
Parses a TS/TSX file to extract props for any exports, using TypeScript compiler
"use strict";
// Demonstrates extracting complete props info, using real TypeScript
// compiler type info.
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
//
var ts = require("typescript");
var fs = require("fs");
var path = require("path");
// Arguments: