fix: add new window property to interface definition

This commit is contained in:
Antoine Chalifour
2019-10-03 13:30:01 +02:00
committed by antoinechalifour
parent 7a8b158188
commit b35baa069f
4 changed files with 5 additions and 6 deletions

View File

@@ -34,11 +34,9 @@ export interface AppStateInterface {
}
export default class App extends Component<{}, AppStateInterface> {
public state: AppStateInterface = {
// @ts-ignore
logoUrl: window.VERDACCIO_LOGO,
user: {},
// @ts-ignore
scope: window.VERDACCIO_SCOPE ? `${window.VERDACCIO_SCOPE}:` : '',
scope: window.VERDACCIO_SCOPE || '',
showLoginModal: false,
isUserLoggedIn: false,
packages: [],