Skip to content

Commit 0c35b32

Browse files
authored
fix: use index.d.ts as types for cjs (#2114)
1 parent 647ad13 commit 0c35b32

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/witty-bottles-carry.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openapi-react-query": patch
3+
---
4+
5+
[#2098](https://github.com/openapi-ts/openapi-typescript/pull/2098): Fix CJS type issues by pointing to proper d.ts file

packages/openapi-react-query/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"default": "./dist/index.js"
1919
},
2020
"require": {
21-
"types": "./dist/index.d.cts",
21+
"types": "./dist/index.d.ts",
2222
"default": "./dist/index.cjs"
2323
}
2424
},

0 commit comments

Comments
 (0)