fix(napi-derive): serde Number typing (#1941)

This commit is contained in:
LongYinan 2024-02-08 18:20:46 +08:00 committed by GitHub
parent 464abaefed
commit adbd34c0b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,6 +80,8 @@ pub(crate) static PRIMITIVE_TYPES: &[(&str, (&str, bool, bool))] = &[
("u8", ("number", false, false)),
("u16", ("number", false, false)),
("u32", ("number", false, false)),
// serde `Number`
("Number", ("number", false, false)),
("u64", ("bigint", false, false)),
("i64n", ("bigint", false, false)),
("u128", ("bigint", false, false)),