mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
fix(ast): serialize TSParenthesizedType with camelCase (#5199)
This commit is contained in:
parent
bf49f339d0
commit
8ebc23f84c
2 changed files with 2 additions and 1 deletions
|
|
@ -2265,6 +2265,7 @@ pub enum AccessorPropertyType {
|
|||
#[derive(Debug, Hash)]
|
||||
#[generate_derive(CloneIn, GetSpan, GetSpanMut)]
|
||||
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct AccessorProperty<'a> {
|
||||
pub r#type: AccessorPropertyType,
|
||||
#[serde(flatten)]
|
||||
|
|
|
|||
|
|
@ -358,7 +358,7 @@ pub struct TSIntersectionType<'a> {
|
|||
#[derive(Debug, Hash)]
|
||||
#[generate_derive(CloneIn, GetSpan, GetSpanMut)]
|
||||
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
|
||||
#[serde(tag = "type")]
|
||||
#[serde(tag = "type", rename_all = "camelCase")]
|
||||
pub struct TSParenthesizedType<'a> {
|
||||
#[serde(flatten)]
|
||||
pub span: Span,
|
||||
|
|
|
|||
Loading…
Reference in a new issue