summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/check
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2023-05-14 20:27:14 +0900
committerGitHub <noreply@github.com>2023-05-14 20:27:14 +0900
commit6bea6b31d3b502165e7e890c889919d67df1a795 (patch)
treec73a589905eb62f835bfb12c28063ae067f6ab26 /cli/tests/testdata/check
parent226a373c497cc3439e032332fefaffa75211afbd (diff)
fix(dts): move BroadcastChannel type to lib.deno.unstable.d.ts (#19108)
Diffstat (limited to 'cli/tests/testdata/check')
-rw-r--r--cli/tests/testdata/check/broadcast_channel.ts1
-rw-r--r--cli/tests/testdata/check/broadcast_channel.ts.error.out4
2 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/check/broadcast_channel.ts b/cli/tests/testdata/check/broadcast_channel.ts
new file mode 100644
index 000000000..6c75b4a8e
--- /dev/null
+++ b/cli/tests/testdata/check/broadcast_channel.ts
@@ -0,0 +1 @@
+const _channel = new BroadcastChannel("foo");
diff --git a/cli/tests/testdata/check/broadcast_channel.ts.error.out b/cli/tests/testdata/check/broadcast_channel.ts.error.out
new file mode 100644
index 000000000..baa6727e3
--- /dev/null
+++ b/cli/tests/testdata/check/broadcast_channel.ts.error.out
@@ -0,0 +1,4 @@
+error: TS2304 [ERROR]: Cannot find name 'BroadcastChannel'.
+const _channel = new BroadcastChannel("foo");
+ ~~~~~~~~~~~~~~~~
+ at [WILDCARD]