1use crate::{
2 bindgen_runtime::{TypeName, ValidateNapiValue},
3 ValueType,
4};
5
6use super::Value;
7
8#[derive(Clone, Copy)]
9pub struct JsUndefined(pub(crate) Value);
10
11impl TypeName for JsUndefined {
12 fn type_name() -> &'static str {
13 "undefined"
14 }
15
16 fn value_type() -> crate::ValueType {
17 ValueType::Undefined
18 }
19}
20
21impl ValidateNapiValue for JsUndefined {}
22