Skip to content

Commit

Permalink
Register TypeScript nodes as exports
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 authored and ljharb committed Sep 14, 2017
1 parent 34e4b95 commit 941629d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ExportMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ ExportMap.parse = function (path, content, context) {
case 'ClassDeclaration':
case 'TypeAlias': // flowtype with babel-eslint parser
case 'InterfaceDeclaration':
case 'TSEnumDeclaration':
case 'TSInterfaceDeclaration':
case 'TSAbstractClassDeclaration':
m.namespace.set(n.declaration.id.name, captureDoc(docStyleParsers, n))
break
case 'VariableDeclaration':
Expand Down

0 comments on commit 941629d

Please sign in to comment.