From 9fb69b04542c27a2f0417b9fd9e308972b63eb04 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Fri, 9 Feb 2024 09:16:11 -0500 Subject: [PATCH] style: prettier --- src/RequestInterface.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/RequestInterface.ts b/src/RequestInterface.ts index fd310c5d6..8f9e14e4c 100644 --- a/src/RequestInterface.ts +++ b/src/RequestInterface.ts @@ -9,7 +9,9 @@ import type { Endpoints, Simplify } from "./generated/Endpoints"; * Parameters that can be passed into `request(route, parameters)` or `endpoint(route, parameters)` methods. * This type represents the options when `request.parseSuccessResponseBody` is set to `false`. */ -type StreamBodyOption = Simplify +type StreamBodyOption = Simplify< + RequestParameters & { request: { parseSuccessResponseBody: false } } +>; export interface RequestInterface { /** * Sends a request based on endpoint options @@ -21,7 +23,6 @@ export interface RequestInterface { ? { url?: string } : { url: string }), ): Promise>; - /** * Sends a request based on endpoint options @@ -48,7 +49,7 @@ export interface RequestInterface { ): R extends keyof Endpoints ? Promise : Promise>>; - + /** * Sends a request based on endpoint options *