swc_common 0.11.5

Common utilities for the swc project.
Documentation
use serde::Deserialize;

#[derive(Deserialize)]
pub struct Node<T> {
    #[serde(default, rename = "type")]
    pub ty: String,
    #[serde(flatten)]
    pub node: T,
}

#[derive(Deserialize)]
pub struct Type {
    #[serde(rename = "type")]
    pub ty: String,
}