mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
fix(dts): move BroadcastChannel type to lib.deno.unstable.d.ts (#19108)
This commit is contained in:
parent
226a373c49
commit
6bea6b31d3
6 changed files with 18 additions and 2 deletions
|
@ -84,6 +84,17 @@ itest!(check_no_error_truncation {
|
|||
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]
|
||||
fn cache_switching_config_then_no_config() {
|
||||
let context = TestContext::default();
|
||||
|
|
|
@ -4713,7 +4713,7 @@ fn lsp_completions_auto_import() {
|
|||
"source": "./b.ts",
|
||||
"data": {
|
||||
"exportName": "foo",
|
||||
"exportMapKey": "foo|6845|file:///a/b",
|
||||
"exportMapKey": "foo|6806|file:///a/b",
|
||||
"moduleSpecifier": "./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.websocket" />
|
||||
/// <reference lib="deno.crypto" />
|
||||
/// <reference lib="deno.broadcast_channel" />
|
||||
|
||||
/** @category 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 lib="deno.ns" />
|
||||
/// <reference lib="deno.broadcast_channel" />
|
||||
|
||||
declare namespace Deno {
|
||||
export {}; // stop default export type behavior
|
||||
|
|
Loading…
Reference in a new issue