diff options
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/main.rs | 7 | ||||
| -rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 84c3704ca..c0eccab5d 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -385,6 +385,13 @@ fn get_suggestions_for_terminal_errors(e: &JsError) -> Vec<FixSuggestion> { FixSuggestion::info("window global is not available in Deno 2."), FixSuggestion::hint("Replace `window` with `globalThis`."), ]; + } else if msg.contains("UnsafeWindowSurface is not a constructor") { + return vec![ + FixSuggestion::info("Deno.UnsafeWindowSurface is an unstable API."), + FixSuggestion::hint( + "Run again with `--unstable-webgpu` flag to enable this API.", + ), + ]; } } diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 3cca95cdf..36592e10d 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -6041,9 +6041,11 @@ declare namespace Deno { * * @category Fetch */ - export interface HttpClient extends Disposable { + export class HttpClient implements Disposable { /** Close the HTTP client. */ close(): void; + + [Symbol.dispose](): void; } /** |
