Skip to content

Commit

Permalink
Adding Codec interface
Browse files Browse the repository at this point in the history
  • Loading branch information
pkedy committed Oct 30, 2020
1 parent a9f3e73 commit 85d804f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assembly/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Writer } from "./writer";

export interface Codec {
decode(decoder: Decoder): void;
encoder(encoder: Writer): void;
encode(encoder: Writer): void;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wapc/as-msgpack",
"version": "0.1.9",
"version": "0.1.10",
"types": "assembly/index.ts",
"description": "MessagePack package for AssemblyScript",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/codec.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Writer } from "./writer";

export declare interface Codec {
decode(decoder: Decoder): void;
encoder(encoder: Writer): void;
encode(encoder: Writer): void;
}
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export * from "./decoder";
export * from "./writer";
export * from "./encoder";
export * from "./sizer";
export * from "./codec";
export * from "./value";
export * from "./datareader";

0 comments on commit 85d804f

Please sign in to comment.