Skip to content

Commit

Permalink
fix: extend allowed bencode types with object
Browse files Browse the repository at this point in the history
  • Loading branch information
isolomak committed Jul 22, 2023
1 parent 5a81fab commit 986783f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export type BencodeList = Array<BencodeTypes>;

export type BencodeDictionary = { [key: string]: BencodeTypes };

export type BencodeTypes = string | number | Buffer | BencodeDictionary | BencodeList;
export type BencodeTypes = string | number | Buffer | BencodeDictionary | BencodeList | object;

export type EncodeSupportedTypes = BencodeTypes | ArrayBuffer | ArrayBufferView | Boolean;

0 comments on commit 986783f

Please sign in to comment.