use napi::bindgen_prelude::*; #[napi] fn date_to_number(input: Date) -> Result { input.value_of() }