Skip to content

Commit

Permalink
docs(msgpack): complete documentation (#4220)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Jan 18, 2024
1 parent 10c5121 commit 5377e3d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion msgpack/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import { concat } from "../bytes/concat.ts";

/**
* Value types that can be encoded to MessagePack.
*/
export type ValueType =
| number
| bigint
Expand All @@ -12,7 +15,13 @@ export type ValueType =
| ValueType[]
| ValueMap;

interface ValueMap {
/**
* Value map that can be encoded to MessagePack.
*/
export interface ValueMap {
/**
* Value types that can be encoded to MessagePack.
*/
[index: string | number]: ValueType;
}

Expand Down

0 comments on commit 5377e3d

Please sign in to comment.