mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(isolated-declarations): infer BigInt number as bigint type (#3806)
This commit is contained in:
parent
4e241fcda8
commit
d8ecce5b3c
1 changed files with 2 additions and 3 deletions
|
|
@ -18,9 +18,8 @@ impl<'a> IsolatedDeclarations<'a> {
|
|||
match expr {
|
||||
Expression::BooleanLiteral(_) => Some(self.ast.ts_boolean_keyword(SPAN)),
|
||||
Expression::NullLiteral(_) => Some(self.ast.ts_null_keyword(SPAN)),
|
||||
Expression::NumericLiteral(_) | Expression::BigintLiteral(_) => {
|
||||
Some(self.ast.ts_number_keyword(SPAN))
|
||||
}
|
||||
Expression::NumericLiteral(_) => Some(self.ast.ts_number_keyword(SPAN)),
|
||||
Expression::BigintLiteral(_) => Some(self.ast.ts_bigint_keyword(SPAN)),
|
||||
Expression::StringLiteral(_) => Some(self.ast.ts_string_keyword(SPAN)),
|
||||
Expression::TemplateLiteral(lit) => {
|
||||
if lit.expressions.is_empty() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue