pub struct TsParam {
pub name: &'static str,
pub ts: &'static str,
pub optional: bool,
}
#[derive(PartialEq, Eq, Clone, Copy)]
pub enum TsKind {
Global,
Method,
Getter,
}
pub struct TsDecl {
pub group: &'static str,
pub name: &'static str,
pub kind: TsKind,
pub params: &'static [TsParam],
pub ret: &'static str,
pub doc: &'static [&'static str],
pub generic: &'static str,
pub optional: bool,
pub order: u32,
pub raw: &'static str,
}
inventory::collect!(TsDecl);
pub struct TsType {
pub decl: &'static str,
}
inventory::collect!(TsType);
pub struct TsInterfaceDef {
pub name: &'static str,
pub generic: &'static str,
pub ctor: Option<&'static [TsParam]>,
}
inventory::collect!(TsInterfaceDef);