Skip to content

Instantly share code, notes, and snippets.

@wtrocki
Created May 18, 2017 14:39
Show Gist options
  • Select an option

  • Save wtrocki/eb34d4dc6d4767883505c6d9cd9ea63b to your computer and use it in GitHub Desktop.

Select an option

Save wtrocki/eb34d4dc6d4767883505c6d9cd9ea63b to your computer and use it in GitHub Desktop.
Simple typescript list of members for file.
console.log("list of methods");
//File to typescript
var index = require("./index.js");
var allKeys = Object.keys(index);
var keys = JSON.stringify(allKeys);
_.each(allKeys,function(key){
console.log("Field " + key + " ", Object.keys(index[key]));
});
console.log(keys);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment