summaryrefslogtreecommitdiff
path: root/tests/specs/check
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-09-10 05:04:59 -0700
committerGitHub <noreply@github.com>2024-09-10 05:04:59 -0700
commitc2f97494f770dc36c0cacdb839f953b00e916e2c (patch)
tree8c2fb1d138760202dd4d15b3008b69115940d0e7 /tests/specs/check
parent9a169e3cf11cccec0dd1a6acbfdba927d99658f5 (diff)
refactor: move WebGPU, FFI and FS typings from unstable to stable (#25488)
Closes #25377
Diffstat (limited to 'tests/specs/check')
-rw-r--r--tests/specs/check/unstable_suggestion/main.out11
-rw-r--r--tests/specs/check/unstable_suggestion/main.ts5
2 files changed, 7 insertions, 9 deletions
diff --git a/tests/specs/check/unstable_suggestion/main.out b/tests/specs/check/unstable_suggestion/main.out
index ba8b2800c..9926c9e3c 100644
--- a/tests/specs/check/unstable_suggestion/main.out
+++ b/tests/specs/check/unstable_suggestion/main.out
@@ -1,10 +1,5 @@
Check file:///[WILDLINE]main.ts
-error: TS2551 [ERROR]: Property 'dlopen' does not exist on type 'typeof Deno'. Did you mean 'open'? 'Deno.dlopen' is an unstable API. Did you mean 'open'? If not, try changing the 'lib' compiler option to include 'deno.unstable' or add a triple-slash directive to the top of your entrypoint (main file): /// <reference lib="deno.unstable" />
-Deno.dlopen("path/to/lib", {});
- ~~~~~~
+error: TS2339 [ERROR]: Property 'listenDatagram' does not exist on type 'typeof Deno'. 'Deno.listenDatagram' is an unstable API. If not, try changing the 'lib' compiler option to include 'deno.unstable' or add a triple-slash directive to the top of your entrypoint (main file): /// <reference lib="deno.unstable" />
+Deno.listenDatagram({
+ ~~~~~~~~~~~~~~
at file:///[WILDLINE]/main.ts:5:6
-
- 'open' is declared here.
- export function open(
- ~~~~
- at asset:///lib.deno.ns.d.ts:[WILDLINE]
diff --git a/tests/specs/check/unstable_suggestion/main.ts b/tests/specs/check/unstable_suggestion/main.ts
index 02a5cfbdf..c5c7a82e1 100644
--- a/tests/specs/check/unstable_suggestion/main.ts
+++ b/tests/specs/check/unstable_suggestion/main.ts
@@ -2,4 +2,7 @@
/// <reference lib="deno.ns" />
// unstable apis removed here, so should error
-Deno.dlopen("path/to/lib", {});
+Deno.listenDatagram({
+ port: 3000,
+ transport: "udp",
+});