Typescript Library Declarations (DOM)
Variable Response
Response
:
{
prototype
:
Response
;
error
(
)
=>
Response
;
redirect
(
url
,
status
?
)
=>
Response
;
new
(
body
?
,
init
?
)
:
Response
;
}
Type declaration
new
(
body
?
,
init
?
)
:
Response
Parameters
Optional
body
:
BodyInit
Optional
init
:
ResponseInit
Returns
Response
prototype
:
Response
error
:
function
error
(
)
:
Response
MDN Reference
Returns
Response
redirect
:
function
redirect
(
url
,
status
?
)
:
Response
MDN Reference
Parameters
url
:
string
|
URL
Optional
status
:
number
Returns
Response
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
MDN Reference