mirror of
https://github.com/denoland/deno.git
synced 2025-02-14 17:47:35 -05:00
fix(dts): move BroadcastChannel type to lib.deno.unstable.d.ts (#19108)
This commit is contained in:
parent
6e655522cd
commit
e0b4ccab78
6 changed files with 18 additions and 2 deletions
|
@ -84,6 +84,17 @@ itest!(check_no_error_truncation {
|
||||||
exit_code: 1,
|
exit_code: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
itest!(check_broadcast_channel_stable {
|
||||||
|
args: "check --quiet check/broadcast_channel.ts",
|
||||||
|
output: "check/broadcast_channel.ts.error.out",
|
||||||
|
exit_code: 1,
|
||||||
|
});
|
||||||
|
|
||||||
|
itest!(check_broadcast_channel_unstable {
|
||||||
|
args: "check --quiet --unstable check/broadcast_channel.ts",
|
||||||
|
exit_code: 0,
|
||||||
|
});
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn cache_switching_config_then_no_config() {
|
fn cache_switching_config_then_no_config() {
|
||||||
let context = TestContext::default();
|
let context = TestContext::default();
|
||||||
|
|
|
@ -4713,7 +4713,7 @@ fn lsp_completions_auto_import() {
|
||||||
"source": "./b.ts",
|
"source": "./b.ts",
|
||||||
"data": {
|
"data": {
|
||||||
"exportName": "foo",
|
"exportName": "foo",
|
||||||
"exportMapKey": "foo|6845|file:///a/b",
|
"exportMapKey": "foo|6806|file:///a/b",
|
||||||
"moduleSpecifier": "./b.ts",
|
"moduleSpecifier": "./b.ts",
|
||||||
"fileName": "file:///a/b.ts"
|
"fileName": "file:///a/b.ts"
|
||||||
},
|
},
|
||||||
|
|
1
cli/tests/testdata/check/broadcast_channel.ts
vendored
Normal file
1
cli/tests/testdata/check/broadcast_channel.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
const _channel = new BroadcastChannel("foo");
|
4
cli/tests/testdata/check/broadcast_channel.ts.error.out
vendored
Normal file
4
cli/tests/testdata/check/broadcast_channel.ts.error.out
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
error: TS2304 [ERROR]: Cannot find name 'BroadcastChannel'.
|
||||||
|
const _channel = new BroadcastChannel("foo");
|
||||||
|
~~~~~~~~~~~~~~~~
|
||||||
|
at [WILDCARD]
|
1
cli/tsc/dts/lib.deno.shared_globals.d.ts
vendored
1
cli/tsc/dts/lib.deno.shared_globals.d.ts
vendored
|
@ -11,7 +11,6 @@
|
||||||
/// <reference lib="deno.fetch" />
|
/// <reference lib="deno.fetch" />
|
||||||
/// <reference lib="deno.websocket" />
|
/// <reference lib="deno.websocket" />
|
||||||
/// <reference lib="deno.crypto" />
|
/// <reference lib="deno.crypto" />
|
||||||
/// <reference lib="deno.broadcast_channel" />
|
|
||||||
|
|
||||||
/** @category WebAssembly */
|
/** @category WebAssembly */
|
||||||
declare namespace WebAssembly {
|
declare namespace WebAssembly {
|
||||||
|
|
1
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
1
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
/// <reference no-default-lib="true" />
|
/// <reference no-default-lib="true" />
|
||||||
/// <reference lib="deno.ns" />
|
/// <reference lib="deno.ns" />
|
||||||
|
/// <reference lib="deno.broadcast_channel" />
|
||||||
|
|
||||||
declare namespace Deno {
|
declare namespace Deno {
|
||||||
export {}; // stop default export type behavior
|
export {}; // stop default export type behavior
|
||||||
|
|
Loading…
Add table
Reference in a new issue