Skip to content

Commit 4831b50

Browse files
authored
Merge pull request #594 from EdgeApp/william/fix-ts5
Fix compatibility with TypeScript v5
2 parents 2d0de43 + 8014a00 commit 4831b50

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- fixed: Export the `EdgeObjectTemplate` type.
6+
- fixed: TypeScript v5 compatibility.
67

78
## 2.4.0 (2024-03-25)
89

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
"exports": {
2828
".": {
2929
"import": "./lib/node/index.mjs",
30-
"require": "./lib/node/index.js"
30+
"require": "./lib/node/index.js",
31+
"types": "./src/types/exports.ts"
3132
},
3233
"./package.json": "./package.json",
3334
"./types": {
3435
"import": "./types.mjs",
35-
"require": "./types.js"
36+
"require": "./types.js",
37+
"types": "./src/types/types.ts"
3638
}
3739
},
3840
"main": "./lib/node/index.js",

src/types/exports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export interface EdgeFakeWorldProps extends CommonProps {
108108
type ComponentType<Props> = (props: Props) => {
109109
type: any
110110
props: any
111-
key: string | number | null
111+
key: string | null
112112
}
113113

114114
/**

0 commit comments

Comments
 (0)