Skip to content

Commit

Permalink
More complete ResponseType type
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jan 18, 2024
1 parent 8510c75 commit dc1d1d0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/runtime/src/fetch/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { def } from '../utils';
import { Body, type BodyInit } from './body';
import { Headers, type HeadersInit } from './headers';

/**
* Interface for the initialization options for a Response.
*/
export interface ResponseInit {
/** Headers for the response. */
headers?: HeadersInit;
Expand All @@ -14,10 +11,13 @@ export interface ResponseInit {
statusText?: string;
}

/**
* Type for the response type.
*/
export type ResponseType = 'default' | 'error';
export type ResponseType =
| 'basic'
| 'cors'
| 'default'
| 'error'
| 'opaque'
| 'opaqueredirect';

/**
* Class representing a HTTP response.
Expand Down

0 comments on commit dc1d1d0

Please sign in to comment.