mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(parser): correct import_kind of TSImportEqualsDeclaration (#1449)
This commit is contained in:
parent
ca06126d50
commit
a7e0706dbc
1 changed files with 2 additions and 2 deletions
|
|
@ -394,9 +394,9 @@ impl<'a> Parser<'a> {
|
|||
is_export: bool,
|
||||
) -> Result<Declaration<'a>> {
|
||||
let import_kind = if !self.peek_at(Kind::Eq) && self.eat(Kind::Type) {
|
||||
ImportOrExportKind::Value
|
||||
} else {
|
||||
ImportOrExportKind::Type
|
||||
} else {
|
||||
ImportOrExportKind::Value
|
||||
};
|
||||
|
||||
let id = self.parse_binding_identifier()?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue