Skip to content

Commit 5fb8004

Browse files
authored
build: Upgrade TypeScript, fix 5.6 error (#272)
1 parent 3cee71c commit 5fb8004

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

modules/react-arborist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@
5757
"npm-run-all": "^4.1.5",
5858
"rimraf": "^5.0.5",
5959
"ts-jest": "^29.1.1",
60-
"typescript": "^5.3.3"
60+
"typescript": "^5.6.0"
6161
}
6262
}

modules/react-arborist/src/interfaces/tree-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,12 +593,12 @@ export class TreeApi<T> {
593593

594594
isEditable(data: T) {
595595
const check = this.props.disableEdit || (() => false);
596-
return !utils.access(data, check) ?? true;
596+
return !utils.access(data, check);
597597
}
598598

599599
isDraggable(data: T) {
600600
const check = this.props.disableDrag || (() => false);
601-
return !utils.access(data, check) ?? true;
601+
return !utils.access(data, check);
602602
}
603603

604604
isDragging(node: string | IdObj | null) {

yarn.lock

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7947,7 +7947,7 @@ __metadata:
79477947
redux: "npm:^5.0.0"
79487948
rimraf: "npm:^5.0.5"
79497949
ts-jest: "npm:^29.1.1"
7950-
typescript: "npm:^5.3.3"
7950+
typescript: "npm:^5.6.0"
79517951
use-sync-external-store: "npm:^1.2.0"
79527952
peerDependencies:
79537953
react: ">= 16.14"
@@ -9535,6 +9535,16 @@ __metadata:
95359535
languageName: node
95369536
linkType: hard
95379537

9538+
"typescript@npm:^5.6.0":
9539+
version: 5.6.2
9540+
resolution: "typescript@npm:5.6.2"
9541+
bin:
9542+
tsc: bin/tsc
9543+
tsserver: bin/tsserver
9544+
checksum: f95365d4898f357823e93d334ecda9fcade54f009b397c7d05b7621cd9e865981033cf89ccde0f3e3a7b73b1fdbae18e92bc77db237b43e912f053fef0f9a53b
9545+
languageName: node
9546+
linkType: hard
9547+
95389548
"typescript@patch:typescript@npm%3A^5.3.3#optional!builtin<compat/typescript>":
95399549
version: 5.3.3
95409550
resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"
@@ -9545,6 +9555,16 @@ __metadata:
95459555
languageName: node
95469556
linkType: hard
95479557

9558+
"typescript@patch:typescript@npm%3A^5.6.0#optional!builtin<compat/typescript>":
9559+
version: 5.6.2
9560+
resolution: "typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>::version=5.6.2&hash=e012d7"
9561+
bin:
9562+
tsc: bin/tsc
9563+
tsserver: bin/tsserver
9564+
checksum: 060a7349adf698477b411be4ace470aee6c2c1bd99917fdf5d33697c17ec55c64fe724eb10399387530b50e9913b41528dd8bfcca0a5fc8f8bac63fbb4580a2e
9565+
languageName: node
9566+
linkType: hard
9567+
95489568
"ulid@npm:^2.3.0":
95499569
version: 2.3.0
95509570
resolution: "ulid@npm:2.3.0"

0 commit comments

Comments
 (0)