Skip to content

Commit

Permalink
Update Typescript (aces#9394)
Browse files Browse the repository at this point in the history
aces#9393 requires to update Typescript to 5+, however this breaks the EEG
viewer compilation.
  • Loading branch information
maximemulder authored Oct 8, 2024
1 parent 8ea7897 commit 2d91a56
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const createToggleEpochEpic = (fromState: (_: any) => any) => (
ofType(TOGGLE_EPOCH),
Rx.map(R.prop('payload')),
Rx.withLatestFrom(state$),
Rx.map(([payload, state]) => {
Rx.map(([payload, state]: [any, any]) => {
const {filteredEpochs, epochs} = fromState(state);
const index = payload;
let newFilteredEpochs;
Expand Down Expand Up @@ -106,7 +106,7 @@ export const createActiveEpochEpic = (fromState: (_: any) => any) => (
ofType(UPDATE_ACTIVE_EPOCH),
Rx.map(R.prop('payload')),
Rx.withLatestFrom(state$),
Rx.map(([payload, state]) => {
Rx.map(([payload, state]: [any, any]) => {
const {epochs} = fromState(state);
const index = payload;

Expand Down
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^8.3.0",
"ts-node": "^10.9.2",
"typescript": "^4.9.5",
"typescript": "^5.6.2",
"webpack": "^5.94.0",
"webpack-cli": "^4.10.0"
},
Expand Down

0 comments on commit 2d91a56

Please sign in to comment.