diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-02-25 01:26:11 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-02-26 13:27:37 +0100 |
commit | 9336850f69f8130e792f8f3763f4e4a951da1921 (patch) | |
tree | 80b81e3f726704eff460553409a79b414609fb41 /subprojects/frontend/src | |
parent | refactor: rename PartialInterpretation adapter (diff) | |
download | refinery-9336850f69f8130e792f8f3763f4e4a951da1921.tar.gz refinery-9336850f69f8130e792f8f3763f4e4a951da1921.tar.zst refinery-9336850f69f8130e792f8f3763f4e4a951da1921.zip |
chore(deps): bump dependencies
Diffstat (limited to 'subprojects/frontend/src')
4 files changed, 5 insertions, 9 deletions
diff --git a/subprojects/frontend/src/editor/scrollbarViewPlugin.ts b/subprojects/frontend/src/editor/scrollbarViewPlugin.ts index f54251a9..f44034fd 100644 --- a/subprojects/frontend/src/editor/scrollbarViewPlugin.ts +++ b/subprojects/frontend/src/editor/scrollbarViewPlugin.ts | |||
@@ -266,7 +266,6 @@ export default function scrollbarViewPlugin( | |||
266 | if (firstRunTimeout !== undefined) { | 266 | if (firstRunTimeout !== undefined) { |
267 | clearTimeout(firstRunTimeout); | 267 | clearTimeout(firstRunTimeout); |
268 | } | 268 | } |
269 | // @ts-expect-error `@types/node` typings should not be in effect here. | ||
270 | firstRunTimeout = setTimeout(() => { | 269 | firstRunTimeout = setTimeout(() => { |
271 | spacer.style.minHeight = `${scrollHeight}px`; | 270 | spacer.style.minHeight = `${scrollHeight}px`; |
272 | firstRun = false; | 271 | firstRun = false; |
diff --git a/subprojects/frontend/src/utils/PendingTask.ts b/subprojects/frontend/src/utils/PendingTask.ts index fd52cef1..d0b24c1f 100644 --- a/subprojects/frontend/src/utils/PendingTask.ts +++ b/subprojects/frontend/src/utils/PendingTask.ts | |||
@@ -20,7 +20,6 @@ export default class PendingTask<T> { | |||
20 | ) { | 20 | ) { |
21 | this.resolveCallback = resolveCallback; | 21 | this.resolveCallback = resolveCallback; |
22 | this.rejectCallback = rejectCallback; | 22 | this.rejectCallback = rejectCallback; |
23 | // @ts-expect-error See https://github.com/mobxjs/mobx/issues/3582 on `@types/node` pollution | ||
24 | this.timeout = setTimeout(() => { | 23 | this.timeout = setTimeout(() => { |
25 | if (!this.resolved) { | 24 | if (!this.resolved) { |
26 | this.reject(new TimeoutError()); | 25 | this.reject(new TimeoutError()); |
diff --git a/subprojects/frontend/src/utils/useDelayedSnackbar.ts b/subprojects/frontend/src/utils/useDelayedSnackbar.ts index 54716c0c..03ad6caa 100644 --- a/subprojects/frontend/src/utils/useDelayedSnackbar.ts +++ b/subprojects/frontend/src/utils/useDelayedSnackbar.ts | |||
@@ -21,7 +21,6 @@ export default function useDelayedSnackbar( | |||
21 | delay = defaultDelay, | 21 | delay = defaultDelay, |
22 | ) => { | 22 | ) => { |
23 | let key: SnackbarKey | undefined; | 23 | let key: SnackbarKey | undefined; |
24 | // @ts-expect-error See https://github.com/mobxjs/mobx/issues/3582 on `@types/node` pollution | ||
25 | let timeout: number | undefined = setTimeout(() => { | 24 | let timeout: number | undefined = setTimeout(() => { |
26 | timeout = undefined; | 25 | timeout = undefined; |
27 | key = enqueueSnackbar(message, options); | 26 | key = enqueueSnackbar(message, options); |
diff --git a/subprojects/frontend/src/xtext/webSocketMachine.ts b/subprojects/frontend/src/xtext/webSocketMachine.ts index 216ed86a..fc53fef3 100644 --- a/subprojects/frontend/src/xtext/webSocketMachine.ts +++ b/subprojects/frontend/src/xtext/webSocketMachine.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import ms from 'ms'; | 1 | import ms from 'ms'; |
2 | import { actions, assign, createMachine, RaiseAction } from 'xstate'; | 2 | import { actions, assign, createMachine } from 'xstate'; |
3 | 3 | ||
4 | const { raise } = actions; | 4 | const { raise } = actions; |
5 | 5 | ||
@@ -217,16 +217,15 @@ export default createMachine( | |||
217 | ...context, | 217 | ...context, |
218 | errors: [], | 218 | errors: [], |
219 | })), | 219 | })), |
220 | // Workaround from https://github.com/statelyai/xstate/issues/1414#issuecomment-699972485 | ||
221 | raiseTimeoutError: raise({ | 220 | raiseTimeoutError: raise({ |
222 | type: 'ERROR', | 221 | type: 'ERROR', |
223 | message: 'Open timeout', | 222 | message: 'Open timeout', |
224 | }) as RaiseAction<WebSocketEvent>, | 223 | }), |
225 | raisePromiseRejectionError: (_context, { data }) => | 224 | raisePromiseRejectionError: (_context, { data }) => |
226 | raise({ | 225 | raise<WebSocketContext, WebSocketEvent>({ |
227 | type: 'ERROR', | 226 | type: 'ERROR', |
228 | message: data, | 227 | message: String(data), |
229 | }) as RaiseAction<WebSocketEvent>, | 228 | }), |
230 | }, | 229 | }, |
231 | }, | 230 | }, |
232 | ); | 231 | ); |