napi-rs/test_module/src/napi5/mod.rs

11 lines
344 B
Rust
Raw Normal View History

use napi::{JsObject, Result};
mod date;
pub fn register_js(exports: &mut JsObject) -> Result<()> {
exports.create_named_method("testObjectIsDate", date::test_object_is_date)?;
exports.create_named_method("testCreateDate", date::test_create_date)?;
exports.create_named_method("testGetDateValue", date::test_get_date_value)?;
Ok(())
}