diff options
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/check/unstable_suggestion/main.out | 11 | ||||
-rw-r--r-- | tests/specs/check/unstable_suggestion/main.ts | 5 |
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", +}); |