We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6846416 + fdeb907 commit 7a7e7c5Copy full SHA for 7a7e7c5
unpack.d.ts
@@ -25,8 +25,10 @@ export interface Options {
25
interface Extension {
26
Class: Function
27
type: number
28
- pack(value: any): Buffer | Uint8Array
29
- unpack(messagePack: Buffer | Uint8Array): any
+ pack?(value: any): Buffer | Uint8Array
+ unpack?(messagePack: Buffer | Uint8Array): any
30
+ read?(datum: any): any
31
+ write?(instance: any): any
32
}
33
export class Unpackr {
34
constructor(options?: Options)
0 commit comments