Skip to content

Commit b23678f

Browse files
committed
fix: types definitions not used because of node.js updates
1 parent eb249e1 commit b23678f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

examples/nextjs/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference types="next/navigation-types/compat/navigation" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

lib/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@
1717
],
1818
"exports": {
1919
".": {
20+
"types": "./dist/index.d.ts",
2021
"require": "./dist/index.js",
21-
"import": "./dist/index.mjs",
22-
"types": "./dist/index.d.ts"
22+
"import": "./dist/index.mjs"
2323
},
2424
"./switch": {
25+
"types": "./dist/client/switch/index.d.ts",
2526
"require": "./dist/client/switch/index.js",
26-
"import": "./dist/client/switch/index.mjs",
27-
"types": "./dist/client/switch/index.d.ts"
27+
"import": "./dist/client/switch/index.mjs"
2828
},
2929
"./dist/client/switch": {
30+
"types": "./dist/client/switch/index.d.ts",
3031
"require": "./dist/client/switch/index.js",
31-
"import": "./dist/client/switch/index.mjs",
32-
"types": "./dist/client/switch/index.d.ts"
32+
"import": "./dist/client/switch/index.mjs"
3333
},
3434
"./hooks": {
35+
"types": "./dist/hooks/index.d.ts",
3536
"require": "./dist/hooks/index.js",
36-
"import": "./dist/hooks/index.mjs",
37-
"types": "./dist/hooks/index.d.ts"
37+
"import": "./dist/hooks/index.mjs"
3838
},
3939
"./dist/hooks": {
40+
"types": "./dist/hooks/index.d.ts",
4041
"require": "./dist/hooks/index.js",
41-
"import": "./dist/hooks/index.mjs",
42-
"types": "./dist/hooks/index.d.ts"
42+
"import": "./dist/hooks/index.mjs"
4343
},
4444
"./css": "./dist/index.css",
4545
"./dist/index.css": "./dist/index.css"

0 commit comments

Comments
 (0)