Created
January 30, 2019 06:16
-
-
Save ksaldana1/8753fbdc9669938d4e5209d1cf31f8b8 to your computer and use it in GitHub Desktop.
kind-printer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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