mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
parent
585ec1218f
commit
50c7526526
3 changed files with 11 additions and 0 deletions
|
@ -63,6 +63,11 @@ mod check {
|
|||
exit_code: 0,
|
||||
});
|
||||
|
||||
itest!(check_static_response_json {
|
||||
args: "check --quiet check/response_json.ts",
|
||||
exit_code: 0,
|
||||
});
|
||||
|
||||
#[test]
|
||||
fn cache_switching_config_then_no_config() {
|
||||
let deno_dir = util::new_deno_dir();
|
||||
|
|
5
cli/tests/testdata/check/response_json.ts
vendored
Normal file
5
cli/tests/testdata/check/response_json.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
/// <reference no-default-lib="true" />
|
||||
/// <reference lib="dom" />
|
||||
/// <reference lib="esnext" />
|
||||
|
||||
Response.json({});
|
1
cli/tsc/dts/lib.dom.d.ts
vendored
1
cli/tsc/dts/lib.dom.d.ts
vendored
|
@ -11783,6 +11783,7 @@ interface Response extends Body {
|
|||
declare var Response: {
|
||||
prototype: Response;
|
||||
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
||||
json(data: unknown, init?: ResponseInit): Response;
|
||||
error(): Response;
|
||||
redirect(url: string | URL, status?: number): Response;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue