Skip to content

Commit

Permalink
improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
itanka9 committed Nov 6, 2024
1 parent cd857e0 commit ed457a8
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 202 deletions.
12 changes: 10 additions & 2 deletions dist/lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@ declare module "json2pbf" {
Columnar = 2,
Row = 3
}
export enum UnpackMethod {
Generic = 1,
Columnar = 2,
Row = 3
}
export interface PackOptions {
pbf?: typeof Pbf;
method?: PackMethod;
columns?: Record<string, JsonType>;
}
export function pack(val: any, options?: PackOptions): ArrayBuffer;
export function unpack(arr: ArrayBuffer): any;
export function packJson(val: any, options?: PackOptions): ArrayBuffer;
export interface UnpackOptions {
method?: UnpackMethod;
}
export function unpackJson(arr: ArrayBuffer, options?: UnpackOptions): any;
}
Loading

0 comments on commit ed457a8

Please sign in to comment.