hildjj / node-cbor

Encode and decode CBOR documents, with both easy mode, streaming mode, and SAX-style evented mode.
MIT License
356 stars 73 forks source link

Support `ArrayBufferView` as `BufferLike` #176

Open jon-chuang opened 1 year ago

jon-chuang commented 1 year ago

Typescript:

Argument of type 'ArrayBufferView' is not assignable to parameter of type 'BufferLike'.
hildjj commented 1 year ago

There was some reason I didn't do this the first time through, but I don't remember it at the moment. This is a completely reasonable request.