1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use syn::{Attribute, Ident};


pub mod consts;
pub mod enums;
pub mod structs;
pub mod type_item;
pub mod fns;


pub trait ToTypescript {
    fn convert_to_ts(self, state: &mut crate::ParseState, debug: bool, uses_typeinterface: bool);

    fn attrs(&self) -> Vec<Attribute>;

    fn ident(&self) -> Ident;

    fn kind(&self) -> &'static str;
}