feat: impl serde for TypeAliasAnnotation
This commit is contained in:
parent
2b5ed95df5
commit
d55b7844f0
|
@ -23,14 +23,14 @@ mod pattern;
|
|||
mod pipe;
|
||||
pub mod pretty;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct TypeAliasAnnotation {
|
||||
pub alias: String,
|
||||
pub parameters: Vec<String>,
|
||||
pub annotation: Annotation,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub enum Type {
|
||||
/// A nominal (named) type such as `Int`, `Float`, or a programmer defined
|
||||
/// custom type such as `Person`. The type can take other types as
|
||||
|
|
Loading…
Reference in New Issue