Skip to content

Commit

Permalink
fix(typescript-estree): export * regression from 133f622 (#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed Mar 18, 2020
1 parent 52b061e commit 09d8afc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/typescript-estree/src/convert.ts
Expand Up @@ -1602,7 +1602,12 @@ export class Converter {
source: this.convertChild(node.moduleSpecifier),
exportKind: node.isTypeOnly ? 'type' : 'value',
exported:
node.exportClause?.kind === SyntaxKind.NamespaceExport
// note - for compat with 3.7.x, where node.exportClause is always undefined and
// SyntaxKind.NamespaceExport does not exist yet (i.e. is undefined), this
// cannot be shortened to an optional chain, or else you end up with
// undefined === undefined, and the true path will hard error at runtime
node.exportClause &&
node.exportClause.kind === SyntaxKind.NamespaceExport
? this.convertChild(node.exportClause.name)
: null,
});
Expand Down

0 comments on commit 09d8afc

Please sign in to comment.