Skip to content

Commit 775929b

Browse files
committed
Missing goldenfile
1 parent 8f65aba commit 775929b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
}

0 commit comments

Comments
 (0)