Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
andyGallagher committed Feb 12, 2024
1 parent 284a03f commit 2bad8be
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/node/net.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions types/node/ts4.8/net.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions types/node/v16/net.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions types/node/v16/ts4.8/net.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions types/node/v18/net.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions types/node/v18/ts4.8/net.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bad8be

Please sign in to comment.