fix(napi): re-export JsDate as Date in prelude

This commit is contained in:
LongYinan 2022-02-06 20:42:48 +08:00
parent 5002e782a4
commit 80ea0ad78c
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
8 changed files with 20 additions and 0 deletions
crates/napi/src/bindgen_runtime

View file

@ -23,6 +23,8 @@ mod string;
mod symbol;
mod task;
#[cfg(feature = "napi5")]
pub use crate::JsDate as Date;
pub use array::*;
pub use arraybuffer::*;
#[cfg(feature = "napi6")]