Skip to content

Commit

Permalink
Fix export all
Browse files Browse the repository at this point in the history
  • Loading branch information
steinybot committed Dec 7, 2023
1 parent 244f008 commit 30dafca
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,15 @@ class TsParser(path: Option[(os.Path, Int)]) extends StdTokenParsers with Parser
("type".isDefined ~ base) | (success(false) ~ base)
}

val exporteeStar: Parser[Boolean ~ TsExportee.Star] =
success(false) ~ ("*" ~> ("as" ~> tsIdent).? ~ from ^^ TsExportee.Star.apply)
val exporteeStar: Parser[Boolean ~ TsExportee.Star] = {
val base = "*" ~> ("as" ~> tsIdent).? ~ from ^^ TsExportee.Star.apply
("type".isDefined ~ base) | (success(false) ~ base)
}

val exporteeTree: Parser[Boolean ~ TsExportee.Tree] =
success(false) ~ (tsDecl ^^ TsExportee.Tree)

exporteeTree | exportedNames | exporteeStar
exporteeTree | exporteeStar | exportedNames
}

(comments <~ "export") ~ exportType ~! exportee ^^ {
Expand Down

0 comments on commit 30dafca

Please sign in to comment.