Skip to content

Commit

Permalink
should be generic
Browse files Browse the repository at this point in the history
  • Loading branch information
BBB committed Nov 5, 2023
1 parent 46f3d02 commit f0c2f16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/sensible-fetch/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ export interface HttpFormData {
/**
* An approximation of Response
*/
export interface IncomingHttpResponse {
readonly url: string;
readonly status: number;
export interface IncomingHttpResponse<URL = string, Status = number> {
readonly url: URL;
readonly status: Status;
readonly statusText: string;
readonly type:
| "default"
Expand All @@ -156,7 +156,7 @@ export interface IncomingHttpResponse {
| "opaqueredirect";
readonly body: ReadableStream | null;
readonly headers: Headers | null;
clone(): IncomingHttpResponse;
clone(): IncomingHttpResponse<URL, Status>;
json(): Promise<unknown>;
text(): Promise<string>;
blob(): Promise<Blob>;
Expand Down

0 comments on commit f0c2f16

Please sign in to comment.