fix #1382 - React Native - Hermes Engine doesn't handle for await very well - comment TS errors that were inherited when forking the project

This commit is contained in:
Ovidiu Cristescu 2023-07-03 05:19:27 +03:00
parent ecdcb2039f
commit 11328f1e3d

View File

@ -276,6 +276,7 @@ class DevToolsEnhancer<S, A extends Action<unknown>> {
!this.actionSanitizer !this.actionSanitizer
? action ? action
: this.actionSanitizer( : this.actionSanitizer(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
(action as PerformAction<A>).action, (action as PerformAction<A>).action,
nextActionId! - 1 nextActionId! - 1
) )
@ -549,6 +550,7 @@ class DevToolsEnhancer<S, A extends Action<unknown>> {
const nextActionId = liftedState.nextActionId; const nextActionId = liftedState.nextActionId;
const liftedAction = liftedState.actionsById[nextActionId - 1]; const liftedAction = liftedState.actionsById[nextActionId - 1];
if (isFiltered(liftedAction.action, this.filters)) return; if (isFiltered(liftedAction.action, this.filters)) return;
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
this.relay('ACTION', state, liftedAction, nextActionId); this.relay('ACTION', state, liftedAction, nextActionId);
if (!this.isExcess && maxAge) if (!this.isExcess && maxAge)
this.isExcess = liftedState.stagedActionIds.length >= maxAge; this.isExcess = liftedState.stagedActionIds.length >= maxAge;
@ -597,6 +599,7 @@ class DevToolsEnhancer<S, A extends Action<unknown>> {
this.store.subscribe(() => { this.store.subscribe(() => {
if (this.isMonitored) if (this.isMonitored)
this.handleChange( this.handleChange(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
this.store.getState(), this.store.getState(),
this.getLiftedStateRaw(), this.getLiftedStateRaw(),
maxAge maxAge