summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/tsc/dts/lib.deno.unstable.d.ts29
-rw-r--r--ext/net/lib.deno_net.d.ts26
2 files changed, 26 insertions, 29 deletions
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts
index 870cb2e1a..9cbfe2bfa 100644
--- a/cli/tsc/dts/lib.deno.unstable.d.ts
+++ b/cli/tsc/dts/lib.deno.unstable.d.ts
@@ -1060,18 +1060,6 @@ declare namespace Deno {
/** **UNSTABLE**: New API, yet to be vetted.
*
- * Unstable options which can be set when opening a Unix listener via
- * {@linkcode Deno.listen} or {@linkcode Deno.listenDatagram}.
- *
- * @category Network
- */
- export interface UnixListenOptions {
- /** A path to the Unix Socket. */
- path: string;
- }
-
- /** **UNSTABLE**: New API, yet to be vetted.
- *
* Unstable options which can be set when opening a datagram listener via
* {@linkcode Deno.listenDatagram}.
*
@@ -1096,23 +1084,6 @@ declare namespace Deno {
* Listen announces on the local transport address.
*
* ```ts
- * const listener = Deno.listen({ path: "/foo/bar.sock", transport: "unix" })
- * ```
- *
- * Requires `allow-read` and `allow-write` permission.
- *
- * @tags allow-read, allow-write
- * @category Network
- */
- export function listen(
- options: UnixListenOptions & { transport: "unix" },
- ): Listener;
-
- /** **UNSTABLE**: New API, yet to be vetted.
- *
- * Listen announces on the local transport address.
- *
- * ```ts
* const listener1 = Deno.listenDatagram({
* port: 80,
* transport: "udp"
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts
index e77b1bc6f..c019c8d61 100644
--- a/ext/net/lib.deno_net.d.ts
+++ b/ext/net/lib.deno_net.d.ts
@@ -138,6 +138,32 @@ declare namespace Deno {
options: TcpListenOptions & { transport?: "tcp" },
): Listener;
+ /** Options which can be set when opening a Unix listener via
+ * {@linkcode Deno.listen} or {@linkcode Deno.listenDatagram}.
+ *
+ * @category Network
+ */
+ export interface UnixListenOptions {
+ /** A path to the Unix Socket. */
+ path: string;
+ }
+
+ /** Listen announces on the local transport address.
+ *
+ * ```ts
+ * const listener = Deno.listen({ path: "/foo/bar.sock", transport: "unix" })
+ * ```
+ *
+ * Requires `allow-read` and `allow-write` permission.
+ *
+ * @tags allow-read, allow-write
+ * @category Network
+ */
+ // deno-lint-ignore adjacent-overload-signatures
+ export function listen(
+ options: UnixListenOptions & { transport: "unix" },
+ ): Listener;
+
/** @category Network */
export interface ListenTlsOptions extends TcpListenOptions {
/** Server private key in PEM format */