From 862cb00e40aa6f094aff019a44f52ebfca90ab88 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Tue, 22 Nov 2022 16:35:42 +0100 Subject: fix(frontend): mobx 6.7.0 typing Also bumps some dependencies and updates tsconfig.json The added workarounds should be remove once https://github.com/mobxjs/mobx/issues/3582 is resolved. --- subprojects/frontend/src/xtext/OccurrencesService.ts | 2 +- subprojects/frontend/src/xtext/webSocketMachine.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'subprojects/frontend/src/xtext') diff --git a/subprojects/frontend/src/xtext/OccurrencesService.ts b/subprojects/frontend/src/xtext/OccurrencesService.ts index 248a9a87..fc72ead2 100644 --- a/subprojects/frontend/src/xtext/OccurrencesService.ts +++ b/subprojects/frontend/src/xtext/OccurrencesService.ts @@ -1,4 +1,4 @@ -import { Transaction } from '@codemirror/state'; +import type { Transaction } from '@codemirror/state'; import { debounce } from 'lodash-es'; import ms from 'ms'; diff --git a/subprojects/frontend/src/xtext/webSocketMachine.ts b/subprojects/frontend/src/xtext/webSocketMachine.ts index 5f6bc604..216ed86a 100644 --- a/subprojects/frontend/src/xtext/webSocketMachine.ts +++ b/subprojects/frontend/src/xtext/webSocketMachine.ts @@ -205,7 +205,7 @@ export default createMachine( ERROR_WAIT_TIME: ({ errors: { length: retryCount } }) => { const { length } = ERROR_WAIT_TIMES; const index = retryCount < length ? retryCount : length - 1; - return ERROR_WAIT_TIMES[index]; + return ERROR_WAIT_TIMES[index] ?? 0; }, }, actions: { -- cgit v1.2.3-54-g00ecf