1 2 3 4 5 6 7 8 9 10 11
use napi_derive::napi; #[derive(Debug, Clone)] #[napi(object)] pub struct Comment { #[napi(ts_type = "'Line' | 'Block'")] pub r#type: String, pub value: String, pub start: u32, pub end: u32, }