diff --git a/electron-devtools-installer/electron-devtools-installer-tests.ts b/electron-devtools-installer/electron-devtools-installer-tests.ts new file mode 100644 index 0000000000..daf19a1daf --- /dev/null +++ b/electron-devtools-installer/electron-devtools-installer-tests.ts @@ -0,0 +1,20 @@ +/// +/// + +import installExtension, { + EMBER_INSPECTOR, REACT_DEVELOPER_TOOLS, + BACKBONE_DEBUGGER, JQUERY_DEBUGGER, + ANGULARJS_BATARANG, VUEJS_DEVTOOLS, + REDUX_DEVTOOLS, REACT_PERF, +} from 'electron-devtools-installer'; + + +installExtension(EMBER_INSPECTOR); +installExtension(REACT_DEVELOPER_TOOLS); +installExtension(BACKBONE_DEBUGGER); +installExtension(JQUERY_DEBUGGER); +installExtension(ANGULARJS_BATARANG); +installExtension(VUEJS_DEVTOOLS); +installExtension(REDUX_DEVTOOLS); +installExtension(REACT_PERF); +installExtension('abcdefghijkl'); \ No newline at end of file diff --git a/electron-devtools-installer/electron-devtools-installer.d.ts b/electron-devtools-installer/electron-devtools-installer.d.ts new file mode 100644 index 0000000000..8a108c1d2f --- /dev/null +++ b/electron-devtools-installer/electron-devtools-installer.d.ts @@ -0,0 +1,24 @@ +// Type definitions for electron-devtools-installer v2.0.1 +// Project: https://github.com/MarshallOfSound/electron-devtools-installer +// Definitions by: Robin Van den Broeck +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "electron-devtools-installer" { + interface ExtensionReference { + id: string, + electron: string, + } + + // Default installation function + export default function (extensionReference: ExtensionReference | string, forceDownload?: boolean): Promise; + + // Devtools themself + export const EMBER_INSPECTOR: ExtensionReference; + export const REACT_DEVELOPER_TOOLS: ExtensionReference; + export const BACKBONE_DEBUGGER: ExtensionReference; + export const JQUERY_DEBUGGER: ExtensionReference; + export const ANGULARJS_BATARANG: ExtensionReference; + export const VUEJS_DEVTOOLS: ExtensionReference; + export const REDUX_DEVTOOLS: ExtensionReference; + export const REACT_PERF: ExtensionReference; +} \ No newline at end of file