Skip to content

Commit

Permalink
chore: cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnritzdoge committed Mar 25, 2021
1 parent c706801 commit 739015a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/PetitioRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type ClientType from "undici/types/client";
import type { IncomingHttpHeaders } from "http";
import type { ParsedUrlQueryInput } from "querystring";
import { PetitioResponse } from "./PetitioResponse";
import Stream from "stream";
import type { Readable } from "stream";
import { URL } from "url";
import { join } from "path";
import { stringify } from "querystring"; // eslint-disable-line no-duplicate-imports
Expand All @@ -34,7 +34,7 @@ export class PetitioRequest {
/**
* The data to be sent as the request body.
*/
public data?: Buffer | string | Stream.Readable;
public data?: Buffer | string | Readable;
/**
* @see [[HTTPMethod]]
*/
Expand Down Expand Up @@ -148,7 +148,7 @@ export class PetitioRequest {
* the body will be sent as is with no modifications such as stringification
* or otherwise.
*/
public body(data: Stream.Readable, sendAs: "stream"): this
public body(data: Readable, sendAs: "stream"): this
public body(data: any, sendAs?: "json" | "form" | "stream"): this {
switch (sendAs) {
case "json": {
Expand Down

0 comments on commit 739015a

Please sign in to comment.