Skip to content

Commit 643b6ee

Browse files
author
Dmitry Shirokov
authored
Merge pull request #1 from runk/sync-types
feat: Add connection_type & is_residential_proxy
2 parents 6941349 + e199b40 commit 643b6ee

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/reader/response.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ interface SubdivisionsRecord {
6161
interface TraitsRecord {
6262
readonly autonomous_system_number?: number;
6363
readonly autonomous_system_organization?: string;
64+
readonly connection_type?: string;
6465
readonly domain?: string;
6566
ip_address?: string;
6667
readonly is_anonymous?: boolean;
@@ -113,6 +114,7 @@ export interface AnonymousIPResponse {
113114
readonly is_anonymous_vpn?: boolean;
114115
readonly is_hosting_provider?: boolean;
115116
readonly is_public_proxy?: boolean;
117+
readonly is_residential_proxy?: boolean;
116118
readonly is_tor_exit_node?: boolean;
117119
}
118120

tsconfig.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@
1414
"removeComments": true,
1515
"sourceMap": true,
1616
"strict": true,
17-
"target": "esnext"
17+
"lib": ["ES2019"],
18+
"target": "ES2019"
1819
},
19-
"exclude": ["node_modules", "**/*.spec.ts", "**/*.test.ts", "__mocks__"]
20+
"exclude": [
21+
"node_modules",
22+
"**/*.spec.ts",
23+
"**/*.test.ts",
24+
"__mocks__",
25+
"lib"
26+
]
2027
}

0 commit comments

Comments
 (0)