Skip to content

Commit c9167e4

Browse files
committed
fix: TextDecoration => TextDecorationType
1 parent 41d4317 commit c9167e4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

__test__/index.spec.mjs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Generated by [AVA](https://avajs.dev).
4242
left: "4px"␊
4343
},␊
4444
textDecoration: {␊
45-
type: TextDecoration["LineThrough"],␊
45+
type: TextDecorationType["LineThrough"],␊
4646
color: "black"␊
4747
},␊
4848
width: "176px"␊
@@ -95,7 +95,7 @@ Generated by [AVA](https://avajs.dev).
9595
"icon": {␊
9696
height: "18px",␊
9797
textDecoration: {␊
98-
type: TextDecoration["LineThrough"],␊
98+
type: TextDecorationType["LineThrough"],␊
9999
color: "black"␊
100100
},␊
101101
width: "18px"␊
@@ -276,7 +276,7 @@ Generated by [AVA](https://avajs.dev).
276276
color: 'red',␊
277277
height: "18px",␊
278278
textDecoration: {␊
279-
type: TextDecoration["LineThrough"],␊
279+
type: TextDecorationType["LineThrough"],␊
280280
color: "red"␊
281281
},␊
282282
width: "18px"␊

__test__/index.spec.mjs.snap

2 Bytes
Binary file not shown.

src/style_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl ToObjectExpr for TextDecoration {
5252
key: PropName::Ident(Ident::new("type".into(), DUMMY_SP)),
5353
value: Expr::Member(MemberExpr {
5454
span: DUMMY_SP,
55-
obj: Box::new(Expr::Ident(Ident::new("TextDecoration".into(), DUMMY_SP))),
55+
obj: Box::new(Expr::Ident(Ident::new("TextDecorationType".into(), DUMMY_SP))),
5656
prop: MemberProp::Computed(ComputedPropName {
5757
span: DUMMY_SP,
5858
expr: Expr::Lit(Lit::Str(Str::from(to_camel_case(self.kind.as_str(), true)))).into(),

0 commit comments

Comments
 (0)