Comparing version 2.4.3 to 3.0.0
/// <reference types="node" /> | ||
import { BencodeTypes, EncodeSupportedTypes, IBencodecOptions } from './types'; | ||
import { EncodeSupportedTypes, IBencodecOptions } from './types'; | ||
export * from './types'; | ||
@@ -7,3 +7,3 @@ /** | ||
*/ | ||
export declare function decode(data: Buffer | string, options?: IBencodecOptions): BencodeTypes; | ||
export declare function decode<Type = unknown>(data: Buffer | string, options?: IBencodecOptions): Type; | ||
/** | ||
@@ -10,0 +10,0 @@ * Encode data |
{ | ||
"name": "bencodec", | ||
"version": "2.4.3", | ||
"version": "3.0.0", | ||
"description": "Library for decoding and encoding bencode data", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
15896