Skip to content

Commit

Permalink
fix(ts): import HttpMethod type
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken committed Dec 6, 2022
1 parent bc0b8aa commit 53a05ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { URLSearchParams } from "url";

// Import Third-party Dependencies
import * as undici from "undici";
import { HttpMethod } from "undici/types/dispatcher";
import status from "statuses";

// Import Internal Dependencies
import * as Utils from "./utils";
import { computeURI } from "./agents";

export type HttpMethod = "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH";
export type InlineCallbackAction = <T>(fn: () => Promise<T>) => Promise<T>;

export interface ReqOptions {
Expand Down
3 changes: 1 addition & 2 deletions src/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import { Duplex, Writable } from "stream";

// Import Third-party Dependencies
import * as undici from "undici";
import { HttpMethod } from "undici/types/dispatcher";

// Import Internal Dependencies
import { ReqOptions } from "./request";
import { ReqOptions, HttpMethod } from "./request";
import { computeURI } from "./agents";
import * as Utils from "./utils";

Expand Down

0 comments on commit 53a05ba

Please sign in to comment.