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 Sep 5, 2023
1 parent d7bb039 commit 0649ddd
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 0649ddd

Please sign in to comment.