Skip to content

Commit 12e5fbd

Browse files
committed
fix: Address most type errors, RTS will need patch
1 parent 600d155 commit 12e5fbd

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

compat/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ declare namespace preact {
100100
}
101101

102102
// export default React;
103-
export = React;
103+
export default React;
104104
export as namespace React;
105105
declare namespace React {
106106
// Export JSX

compat/src/internal.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import {
33
VNode as PreactVNode,
44
FunctionComponent as PreactFunctionComponent,
55
PreactElement
6-
} from '../../src/internal';
7-
import { SuspenseProps } from './suspense';
6+
} from '../../src/internal.js';
7+
import { SuspenseProps } from './suspense.js';
88

9-
export { ComponentChildren } from '../..';
9+
export { ComponentChildren } from '../../src/index.js';
1010

1111
export { PreactElement };
1212

hooks/src/internal.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
PreactContext,
66
HookType,
77
ErrorInfo
8-
} from '../../src/internal';
9-
import { Reducer, StateUpdater } from '.';
8+
} from '../../src/internal.js';
9+
import { Reducer, StateUpdater } from './index.js';
1010

1111
export { PreactContext };
1212

jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"moduleResolution": "node",
1010
"resolveJsonModule": true,
1111
"paths": {
12-
"preact": ["."],
12+
"preact": ["./src/index.d.ts"],
1313
"preact/*": ["./*"]
1414
},
1515
"target": "es5",

0 commit comments

Comments
 (0)