diff --git a/.flowconfig b/.flowconfig index 48b158aad79..32e65c62690 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,10 +1,9 @@ [ignore] -.*/node_modules/.* .*/app/extensions/brave/gen/.* +.*/test/.*/*.json +.*/node_modules/fbjs/lib/.* .*/build/Release/.* .*/public/built/.* -.*/dist/.* -.*/win64-dist/.* [libs] decls diff --git a/app/index.js b/app/index.js index e6f0a5d7736..f1391134053 100644 --- a/app/index.js +++ b/app/index.js @@ -1,3 +1,4 @@ +// @flow /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/decls/globals.js b/decls/globals.js index 76807cdca2e..20a16724c44 100644 --- a/decls/globals.js +++ b/decls/globals.js @@ -8,3 +8,10 @@ declare class IpcRenderer { sendToHost(msg: string, ...args: any): void; } declare var KeyEvent: any; +declare module electron { + declare var BrowserWindow: any; + declare var ipcMain: any; + declare var dialog: any; + declare var clipboard: any; + declare var app: any; +}