fix(napi-derive-backend): JsBuffer should map to Buffer type
This commit is contained in:
parent
052bcd8f3e
commit
b8bcdd9c04
1 changed files with 1 additions and 0 deletions
|
@ -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<{}>"),
|
||||
|
|
Loading…
Reference in a new issue