File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ declare module 'response-static' {
2+ export namespace responseExports {
3+ export function testResponseError ( ) : Promise < ResponseResult > ;
4+ export function testResponseRedirect ( ) : Promise < ResponseResult > ;
5+ export function testResponseRedirectDefault ( ) : Promise < ResponseResult > ;
6+ export function testResponseJson ( ) : Promise < ResponseJsonResult > ;
7+ export function testResponseJsonCustomStatus ( ) : Promise < ResponseJsonResult > ;
8+ export function testResponseJsonString ( ) : Promise < ResponseJsonResult > ;
9+ export function testResponseJsonWithHeaders ( ) : Promise < ResponseJsonHeadersResult > ;
10+ export function testResponseRedirectInvalidStatus ( ) : Promise < RedirectInvalidResult > ;
11+ export type ResponseResult = {
12+ status : number ;
13+ statusText : string ;
14+ ok : boolean ;
15+ typeField : string ;
16+ location ?: string ;
17+ } ;
18+ export type ResponseJsonResult = {
19+ status : number ;
20+ statusText : string ;
21+ contentType : string ;
22+ text : string ;
23+ } ;
24+ export type ResponseJsonHeadersResult = {
25+ status : number ;
26+ statusText : string ;
27+ contentType : string ;
28+ text : string ;
29+ customHeader ?: string ;
30+ } ;
31+ export type RedirectInvalidResult = {
32+ success : boolean ;
33+ error : string ;
34+ } ;
35+ }
36+ }
You can’t perform that action at this time.
0 commit comments