Skip to content

Commit

Permalink
Ignore export default (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
TATSUNO Yasuhiro authored and sjrd committed May 7, 2019
1 parent 1fbed7a commit 1a9a723
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/export.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ declare module "pixi.js" {
}

export as namespace asNamespace;

export default Hoge
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class TSDefParser extends StdTokenParsers with ImplicitConversions {
| opt("export") ~> opt("declare") ~> moduleElementDecl1
).map(Some(_))
| "export" ~> lexical.Identifier("as") ~> "namespace" ~> identifier <~ opt(";") ^^^ None
| "export" ~> "default" ~> identifier <~ opt(";") ^^^ None
)

lazy val ambientModuleDecl: Parser[DeclTree] =
Expand Down

0 comments on commit 1a9a723

Please sign in to comment.