Skip to content

Instantly share code, notes, and snippets.

@ksaldana1
Created January 30, 2019 06:16
Show Gist options
  • Save ksaldana1/8753fbdc9669938d4e5209d1cf31f8b8 to your computer and use it in GitHub Desktop.
Save ksaldana1/8753fbdc9669938d4e5209d1cf31f8b8 to your computer and use it in GitHub Desktop.
kind-printer
ts.forEachChild(source, node => {
if (ts.isTypeAliasDeclaration(node)) {
console.log(node.kind);
}
})
// prints TypeAliasDeclaration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment