diff --git a/index.d.ts b/index.d.ts index 7f81e05..85ad0b7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -669,7 +669,7 @@ declare namespace orchid { /** * Converts the body to a JSON object or array */ - public json(): T; + public json(): T; /** * Returns the body as a Buffer @@ -697,26 +697,27 @@ declare namespace orchid { } export abstract class Serializer { - /** - * Constructs a new instance of [Serializer] - * @param contentType The content-type to use to serialize - */ - constructor(contentType: string | RegExp); + /** + * Constructs a new instance of [Serializer] + * @param contentType The content-type to use to serialize + */ + constructor(contentType: string | RegExp); - /** - * Serializes data and returns the output - * @param data The data (that is a Buffer) to serialize - * @returns The data represented as [T]. - * @throws {SyntaxError} When the user hasn't overloaded this function - */ - abstract serialize(data: Buffer): T; + /** + * Serializes data and returns the output + * @param data The data (that is a Buffer) to serialize + * @returns The data represented as [T]. + * @throws {SyntaxError} When the user hasn't overloaded this function + */ + abstract serialize(data: Buffer): T; } export class JsonSerializer extends Serializer { - serialize(data: Buffer): T; + serialize(data: Buffer): T; } + export class TextSerializer extends Serializer { - serialize(data: Buffer); + serialize(data: Buffer): string; } // ~ Namespaces ~ diff --git a/package.json b/package.json index f229ae9..52b669b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@augu/orchid", "description": "🛬 Simple and lightweight way to create a HTTP request to the world, with more features sprinkled in.", - "version": "2.2.2", + "version": "2.2.3", "main": "build/index.js", "license": "MIT", "types": "index.d.ts",