swc_common/serializer.rs
1#![allow(deprecated)]
2#![deprecated = "Not used by swc, and this will be removed with next breaking change"]
3use serde::Deserialize;
4
5#[derive(Deserialize)]
6#[deprecated = "Not used by swc, and this will be removed with next breaking change"]
7pub struct Node<T> {
8 #[serde(default, rename = "type")]
9 pub ty: String,
10 #[serde(flatten)]
11 pub node: T,
12}
13
14#[derive(Deserialize)]
15pub struct Type {
16 #[serde(rename = "type")]
17 pub ty: String,
18}