mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
feat(prettier): print TSTupleType (#1408)
This commit is contained in:
parent
97fee26e25
commit
70b80ba542
2 changed files with 1 additions and 2 deletions
|
|
@ -12,7 +12,6 @@ use super::Format;
|
|||
#[allow(clippy::enum_variant_names)]
|
||||
pub enum Array<'a, 'b> {
|
||||
ArrayExpression(&'b ArrayExpression<'a>),
|
||||
#[allow(unused)]
|
||||
TSTupleType(&'b TSTupleType<'a>),
|
||||
ArrayPattern(&'b ArrayPattern<'a>),
|
||||
ArrayAssignmentTarget(&'b ArrayAssignmentTarget<'a>),
|
||||
|
|
|
|||
|
|
@ -751,7 +751,7 @@ impl<'a> Format<'a> for TSTemplateLiteralType<'a> {
|
|||
|
||||
impl<'a> Format<'a> for TSTupleType<'a> {
|
||||
fn format(&self, p: &mut Prettier<'a>) -> Doc<'a> {
|
||||
Doc::Line
|
||||
array::print_array(p, &Array::TSTupleType(self))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue