Skip to content

Commit

Permalink
fix(oxc_parser): parse true as TSLiteralType
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 20, 2025
1 parent 2a2ad53 commit 2b322e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_parser/src/ts/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ impl<'a> ParserImpl<'a> {
// return parseJSDocFunctionType();
Kind::Question => self.parse_js_doc_unknown_or_nullable_type(),
Kind::Bang => self.parse_js_doc_non_nullable_type(),
Kind::NoSubstitutionTemplate | Kind::Str | Kind::False | Kind::Null => {
Kind::NoSubstitutionTemplate | Kind::Str | Kind::True | Kind::False | Kind::Null => {
self.parse_literal_type_node(/* negative */ false)
}
kind if kind.is_number() => {
Expand Down

0 comments on commit 2b322e5

Please sign in to comment.