Skip to content

Commit 5c9059b

Browse files
authored
Changed type re-export to export type (#151)
2 parents 910373a + 25bdcb4 commit 5c9059b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright © 2024 Cloudnode OÜ.
2+
* Copyright © 2024–2026 Cloudnode OÜ.
33
*
44
* This file is part of @cldn/ip.
55
*
@@ -15,10 +15,10 @@
1515
* If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
export {IP} from "./IP.js";
18+
export type {IP} from "./IP.js";
1919
export {IPAddress} from "./IPAddress.js";
2020
export {IPv4} from "./IPv4.js";
2121
export {IPv6} from "./IPv6.js";
22-
export {Network} from "./Network.js";
22+
export type {Network} from "./Network.js";
2323
export {Subnet} from "./Subnet.js";
2424
export {SubnetList} from "./SubnetList.js";

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"target": "esnext",
1010
"module": "Node16",
1111
"moduleResolution": "Node16",
12+
"isolatedModules": true,
1213
"inlineSourceMap": true,
1314
"outDir": "./dist",
1415
"declaration": true,

0 commit comments

Comments
 (0)