fix(napi-derive-backend): JsBuffer should map to Buffer type

This commit is contained in:
LongYinan 2021-11-16 12:35:22 +08:00
parent 052bcd8f3e
commit b8bcdd9c04
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -65,6 +65,7 @@ static KNOWN_TYPES: Lazy<HashMap<&'static str, &'static str>> = Lazy::new(|| {
("ArrayBuffer", "ArrayBuffer"),
("DataView", "DataView"),
("Date", "Date"),
("JsBuffer", "Buffer"),
("Buffer", "Buffer"),
// TODO: Vec<u8> should be Buffer, now is Array<number>
("Vec", "Array<{}>"),