diff --git a/types/node/net.d.ts b/types/node/net.d.ts index 9af5e3d9eba134..8e11e5cc1b46b5 100644 --- a/types/node/net.d.ts +++ b/types/node/net.d.ts @@ -736,6 +736,11 @@ declare module "net" { */ check(address: SocketAddress): boolean; check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: string[]; } interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { timeout?: number | undefined; diff --git a/types/node/ts4.8/net.d.ts b/types/node/ts4.8/net.d.ts index 9af5e3d9eba134..8e11e5cc1b46b5 100644 --- a/types/node/ts4.8/net.d.ts +++ b/types/node/ts4.8/net.d.ts @@ -736,6 +736,11 @@ declare module "net" { */ check(address: SocketAddress): boolean; check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: string[]; } interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { timeout?: number | undefined; diff --git a/types/node/v16/net.d.ts b/types/node/v16/net.d.ts index f5093f01d7c27a..2b2691d8842ce8 100644 --- a/types/node/v16/net.d.ts +++ b/types/node/v16/net.d.ts @@ -683,6 +683,11 @@ declare module "net" { */ check(address: SocketAddress): boolean; check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: string[]; } interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { timeout?: number | undefined; diff --git a/types/node/v16/ts4.8/net.d.ts b/types/node/v16/ts4.8/net.d.ts index f5093f01d7c27a..2b2691d8842ce8 100644 --- a/types/node/v16/ts4.8/net.d.ts +++ b/types/node/v16/ts4.8/net.d.ts @@ -683,6 +683,11 @@ declare module "net" { */ check(address: SocketAddress): boolean; check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: string[]; } interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { timeout?: number | undefined; diff --git a/types/node/v18/net.d.ts b/types/node/v18/net.d.ts index e17f0212e7c870..300bfb53b77b8b 100644 --- a/types/node/v18/net.d.ts +++ b/types/node/v18/net.d.ts @@ -723,6 +723,11 @@ declare module "net" { */ check(address: SocketAddress): boolean; check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: string[]; } interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { timeout?: number | undefined; diff --git a/types/node/v18/ts4.8/net.d.ts b/types/node/v18/ts4.8/net.d.ts index e17f0212e7c870..300bfb53b77b8b 100644 --- a/types/node/v18/ts4.8/net.d.ts +++ b/types/node/v18/ts4.8/net.d.ts @@ -723,6 +723,11 @@ declare module "net" { */ check(address: SocketAddress): boolean; check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: string[]; } interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { timeout?: number | undefined;