mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
fix(ast): add Function to generated TS types and fix ModifierKind serialization (#2534)
This commit is contained in:
parent
24ded3cb15
commit
d181209759
2 changed files with 2 additions and 1 deletions
|
|
@ -1701,6 +1701,7 @@ pub struct BindingRestElement<'a> {
|
|||
/// Function Definitions
|
||||
#[derive(Debug, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize), serde(rename_all = "camelCase"))]
|
||||
#[cfg_attr(all(feature = "serde", feature = "wasm"), derive(tsify::Tsify))]
|
||||
pub struct Function<'a> {
|
||||
pub r#type: FunctionType,
|
||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||
|
|
|
|||
|
|
@ -954,7 +954,7 @@ pub struct Decorator<'a> {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type", rename_all = "camelCase"))]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize), serde(rename_all = "camelCase"))]
|
||||
#[cfg_attr(all(feature = "serde", feature = "wasm"), derive(tsify::Tsify))]
|
||||
pub enum ModifierKind {
|
||||
Abstract,
|
||||
|
|
|
|||
Loading…
Reference in a new issue