Skip to content

Commit 497bef6

Browse files
committed
fix: disable exactOptionalPropertyTypes TypeScript option
This setting is causing problems with one of `react-aria`'s dependencies, and we've found it to be probably more annoying than it's worth anyway, on balance. Signed-off-by: Drew Hess <src@drewhess.com>
1 parent 51cc92a commit 497bef6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/TreeReactFlow/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ export const ReactFlowSafe = <
12531253
// the tree in order to perform actions on them.
12541254
elementsSelectable: false,
12551255
onNodeClick: (e, n) => {
1256-
"onNodeClick" in p &&
1256+
p.onNodeClick &&
12571257
p.onNodeClick(
12581258
e,
12591259
// This cast is safe because `N` is also the type of elements of the `nodes` field.

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"allowUnreachableCode": false,
2323
"allowUnusedLabels": false,
2424
"alwaysStrict": true,
25-
"exactOptionalPropertyTypes": true,
2625
"noFallthroughCasesInSwitch": true,
2726
"noImplicitAny": true,
2827
"noImplicitOverride": true,
@@ -51,3 +50,4 @@
5150
}
5251
}
5352
}
53+

0 commit comments

Comments
 (0)