From fb316787cbefff7a864beb8268dc395fec535ebb Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 27 Aug 2019 10:54:21 -0700 Subject: [PATCH] Removed unused Chrome Flow types --- .../flow-typed/chrome.js | 103 ------------------ 1 file changed, 103 deletions(-) delete mode 100644 packages/react-devtools-extensions/flow-typed/chrome.js diff --git a/packages/react-devtools-extensions/flow-typed/chrome.js b/packages/react-devtools-extensions/flow-typed/chrome.js deleted file mode 100644 index 501080bb8bdd7..0000000000000 --- a/packages/react-devtools-extensions/flow-typed/chrome.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow - */ - -'use strict'; - -declare var chrome: { - devtools: { - network: { - onNavigated: { - addListener: (cb: (url: string) => void) => void, - removeListener: (cb: () => void) => void, - }, - }, - inspectedWindow: { - eval: (code: string, cb?: (res: any, err: ?Object) => any) => void, - tabId: number, - }, - panels: { - create: ( - title: string, - icon: string, - filename: string, - cb: (panel: { - onHidden: { - addListener: (cb: (window: Object) => void) => void, - }, - onShown: { - addListener: (cb: (window: Object) => void) => void, - }, - }) => void - ) => void, - themeName: ?string, - }, - }, - tabs: { - create: (options: Object) => void, - executeScript: (tabId: number, options: Object, fn: () => void) => void, - onUpdated: { - addListener: ( - fn: (tabId: number, changeInfo: Object, tab: Object) => void - ) => void, - }, - query: (options: Object, fn: (tabArray: Array) => void) => void, - }, - browserAction: { - setIcon: (options: { - tabId: number, - path: {[key: string]: string}, - }) => void, - setPopup: (options: { - tabId: number, - popup: string, - }) => void, - }, - runtime: { - getURL: (path: string) => string, - sendMessage: (config: Object) => void, - connect: ( - config: Object - ) => { - disconnect: () => void, - onMessage: { - addListener: (fn: (message: Object) => void) => void, - }, - onDisconnect: { - addListener: (fn: (message: Object) => void) => void, - }, - postMessage: (data: Object) => void, - }, - onConnect: { - addListener: ( - fn: (port: { - name: string, - sender: { - tab: { - id: number, - url: string, - }, - }, - }) => void - ) => void, - }, - onMessage: { - addListener: ( - fn: ( - req: Object, - sender: { - url: string, - tab: { - id: number, - }, - } - ) => void - ) => void, - }, - }, -};