Skip to content

Commit a3e0c6f

Browse files
committed
ts fixes in renderer
1 parent 127875f commit a3e0c6f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dash/dash-renderer/src/actions/callbacks.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ export function executeCallback(
513513
),
514514
payload
515515
};
516-
} catch (error) {
516+
} catch (error: any) {
517517
return {error, payload};
518518
}
519519
}
@@ -536,7 +536,7 @@ export function executeCallback(
536536
}
537537

538538
return {data, payload};
539-
} catch (res) {
539+
} catch (res: any) {
540540
lastError = res;
541541
if (
542542
retry <= MAX_AUTH_RETRIES &&
@@ -579,7 +579,7 @@ export function executeCallback(
579579

580580
// we reach here when we run out of retries.
581581
return {error: lastError, payload: null};
582-
} catch (error) {
582+
} catch (error: any) {
583583
return {error, payload: null};
584584
}
585585
};
@@ -590,7 +590,7 @@ export function executeCallback(
590590
};
591591

592592
return newCb;
593-
} catch (error) {
593+
} catch (error: any) {
594594
return {
595595
...cb,
596596
executionPromise: {error, payload: null}

dash/dash-renderer/src/actions/dependencies_ts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export function pruneCallbacks<T extends ICallback>(
306306
removed
307307
);
308308

309-
const added = map(
309+
const added: any = map(
310310
cb =>
311311
assoc(
312312
'changedPropIds',

dash/dash-renderer/src/observers/executedCallbacks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const observer: IStoreObserverDefinition<IStoreState> = {
210210
map(
211211
property =>
212212
combineIdAndProp({id, property}),
213-
keys(value)
213+
keys(value) as string[]
214214
),
215215
toPairs(data)
216216
)

0 commit comments

Comments
 (0)