415gotit
This commit is contained in:
9
node_modules/@msgpack/msgpack/dist.esm/encode.d.ts
generated
vendored
Normal file
9
node_modules/@msgpack/msgpack/dist.esm/encode.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { EncoderOptions } from "./Encoder.ts";
|
||||
import type { SplitUndefined } from "./context.ts";
|
||||
/**
|
||||
* It encodes `value` in the MessagePack format and
|
||||
* returns a byte buffer.
|
||||
*
|
||||
* The returned buffer is a slice of a larger `ArrayBuffer`, so you have to use its `#byteOffset` and `#byteLength` in order to convert it to another typed arrays including NodeJS `Buffer`.
|
||||
*/
|
||||
export declare function encode<ContextType = undefined>(value: unknown, options?: EncoderOptions<SplitUndefined<ContextType>>): Uint8Array<ArrayBuffer>;
|
||||
Reference in New Issue
Block a user