diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2023-12-06 16:52:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 16:52:59 +0900 |
commit | dadd8b3d660fd2fd56803f29e1d8b6dd7a2adde9 (patch) | |
tree | 011a23d81af0ffd123c83cf47ed31c2338f377d9 /cli/tsc | |
parent | 65993e5efa5931c7a50b1fe926a0fa43eae0ca13 (diff) |
feat(ext/fetch): allow `Deno.HttpClient` to be declared with `using` (#21453)
This commit adds a method of `Symbol.dispose` to the object returned
from `Deno.createHttpClient`, so we can make use of [explicit resource
management](https://github.com/tc39/proposal-explicit-resource-management)
by declaring it with `using`.
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/dts/lib.deno.unstable.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 2890a50ff..bdb0493b0 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -847,7 +847,7 @@ declare namespace Deno { * * @category Fetch API */ - export interface HttpClient { + export interface HttpClient extends Disposable { /** The resource ID associated with the client. */ rid: number; /** Close the HTTP client. */ |