Skip to content

Commit

Permalink
fix(napi-derive-backend): JsBuffer should map to Buffer type
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Nov 16, 2021
1 parent 052bcd8 commit b8bcdd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/backend/src/typegen.rs
Expand Up @@ -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<{}>"),
Expand Down

0 comments on commit b8bcdd9

Please sign in to comment.