Skip to content

Commit

Permalink
Move MsgPack interface into its own file
Browse files Browse the repository at this point in the history
Preparation for #1375 (making MessagePack functionality tree-shakable).
  • Loading branch information
lawrence-forooghian committed Aug 21, 2023
1 parent 2f97fe7 commit affbf2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/types/IPlatformConfig.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
interface MsgPack {
encode(value: any, sparse?: boolean): Buffer | ArrayBuffer | undefined;
decode(buffer: Buffer): any;
}
import { MsgPack } from './msgpack';

export interface IPlatformConfig {
agent: string;
Expand Down
4 changes: 4 additions & 0 deletions src/common/types/msgpack.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface MsgPack {
encode(value: any, sparse?: boolean): Buffer | ArrayBuffer | undefined;
decode(buffer: Buffer): any;
}

0 comments on commit affbf2d

Please sign in to comment.