Skip to content

Commit 96c1115

Browse files
committed
adding ignore statements for the window object
1 parent be4ac5a commit 96c1115

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dash/dash-renderer/src/store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export default class RendererStore {
5656
private createAppStore = (reducer: any, middleware: any) => {
5757
this.__store = createStore(reducer, middleware);
5858
this.storeObserver.setStore(this.__store);
59+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
60+
// @ts-ignore
5961
const ds = (window.dash_stores = window.dash_stores || []);
6062
ds.push(this.__store);
6163
this.setObservers();

dash/dash-renderer/src/utils/setProps.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import {updateProps, notifyObservers} from '../actions/index';
22
import {getPath} from '../actions/paths';
33

44
const setProps = (updates: {}) => {
5+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
6+
// @ts-ignore
57
const ds = (window.dash_stores = window.dash_stores || []);
68
for (let y = 0; y < ds.length; y++) {
79
const {dispatch, getState} = ds[y];
@@ -19,5 +21,7 @@ const setProps = (updates: {}) => {
1921
}
2022
};
2123

24+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
25+
// @ts-ignore
2226
const dc = (window.dash_clientside = window.dash_clientside || {});
2327
dc['setProps'] = setProps;

0 commit comments

Comments
 (0)