2020-09-02 18:05:53 +09:00
|
|
|
use napi::{Module, Result};
|
|
|
|
|
|
|
|
mod date;
|
|
|
|
|
|
|
|
pub fn register_js(module: &mut Module) -> Result<()> {
|
|
|
|
module.create_named_method("testObjectIsDate", date::test_object_is_date)?;
|
2020-10-10 15:50:35 +09:00
|
|
|
module.create_named_method("testCreateDate", date::test_create_date)?;
|
|
|
|
module.create_named_method("testGetDateValue", date::test_get_date_value)?;
|
2020-09-02 18:05:53 +09:00
|
|
|
Ok(())
|
|
|
|
}
|