Skip to content

Commit 0e6d27f

Browse files
Merge pull request #1314 from remarkablemark/fix/types
fix: move `@types/react` to dependencies and fix esm types
2 parents 16b5ccf + e3c7931 commit 0e6d27f

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

esm/attributes-to-props.d.mts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export { default } from '../lib/attributes-to-props';
1+
import attributesToProps from '../lib/attributes-to-props.js';
2+
3+
// @ts-expect-error Property 'default' exists on type
4+
export default attributesToProps.default || attributesToProps;

esm/dom-to-react.d.mts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export { default } from '../lib/dom-to-react';
1+
import domToReact from '../lib/dom-to-react.js';
2+
3+
// @ts-expect-error Property 'default' exists on type
4+
export default domToReact.default || domToReact;

package-lock.json

+4-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"dom"
4949
],
5050
"dependencies": {
51+
"@types/react": "18.2.55",
5152
"domhandler": "5.0.3",
5253
"html-dom-parser": "5.0.8",
5354
"react-property": "2.0.2",
@@ -63,7 +64,6 @@
6364
"@size-limit/preset-big-lib": "11.0.2",
6465
"@types/benchmark": "2.1.5",
6566
"@types/jest": "29.5.12",
66-
"@types/react": "18.2.55",
6767
"@types/react-dom": "18.2.19",
6868
"@typescript-eslint/eslint-plugin": "7.0.1",
6969
"@typescript-eslint/parser": "7.0.1",

0 commit comments

Comments
 (0)