Skip to content

Commit

Permalink
fix: release "Allow URL class object as an argument for fetch()" node…
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok authored Mar 11, 2023
1 parent 8ced5b9 commit 7b86e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export type RequestRedirect = 'error' | 'follow' | 'manual';
export type ReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'same-origin' | 'origin' | 'strict-origin' | 'origin-when-cross-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
export type RequestInfo = string | Request;
export class Request extends BodyMixin {
constructor(input: RequestInfo | URL, init?: RequestInit);
constructor(input: URL | RequestInfo, init?: RequestInit);

/**
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
Expand Down Expand Up @@ -216,4 +216,4 @@ export class AbortError extends Error {
}

export function isRedirect(code: number): boolean;
export default function fetch(url: RequestInfo | URL, init?: RequestInit): Promise<Response>;
export default function fetch(url: URL | RequestInfo, init?: RequestInit): Promise<Response>;

0 comments on commit 7b86e94

Please sign in to comment.