From c71841152b2ac3190d16ebbefbaeb69c56a8f4d6 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 17 Apr 2017 14:35:19 -0400 Subject: [PATCH] Fix tabs vs. spaces --- types/electron/index.d.ts | 64 ++++++++++++++++----------------- types/electron/test/renderer.ts | 22 ++++++------ 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/types/electron/index.d.ts b/types/electron/index.d.ts index 60c799f0b6..66f5e4f855 100644 --- a/types/electron/index.d.ts +++ b/types/electron/index.d.ts @@ -277,8 +277,8 @@ declare namespace Electron { */ setName(name: string): void; /** - * @returns The current application locale. - */ + * @returns The current application locale. + */ getLocale(): string; /** * Adds path to recent documents list. @@ -2191,15 +2191,15 @@ declare namespace Electron { /** * Contains which features the dialog should use. */ - properties?: ('openFile' | 'openDirectory' | 'multiSelections' | 'createDirectory' | 'showHiddenFiles' | 'promptToCreate' | 'noResolveAliases')[]; - /** - * Normalize the keyboard access keys across platforms. - */ - normalizeAccessKeys?: boolean; - /** - * Message to display above input boxes. - */ - message?: string; + properties?: ('openFile' | 'openDirectory' | 'multiSelections' | 'createDirectory' | 'showHiddenFiles' | 'promptToCreate' | 'noResolveAliases')[]; + /** + * Normalize the keyboard access keys across platforms. + */ + normalizeAccessKeys?: boolean; + /** + * Message to display above input boxes. + */ + message?: string; } interface SaveDialogOptions { @@ -2216,18 +2216,18 @@ declare namespace Electron { name: string; extensions: string[]; }[]; - /** - * macOS - Message to display above text fields. - */ - message?: string; - /** - * macOS - Custom label for the text displayed in front of the filename text field. - */ - nameFieldLabel?: string; - /** - * macOS - Show the tags input box, defaults to true. - */ - showsTagField?: boolean; + /** + * macOS - Message to display above text fields. + */ + message?: string; + /** + * macOS - Custom label for the text displayed in front of the filename text field. + */ + nameFieldLabel?: string; + /** + * macOS - Show the tags input box, defaults to true. + */ + showsTagField?: boolean; } interface ShowMessageBoxOptions { @@ -2625,14 +2625,14 @@ declare namespace Electron { */ constructor(); /** - * Sets menu as the application menu on macOS. On Windows and Linux, the menu - * will be set as each window's top menu. - */ - static setApplicationMenu(menu: Menu): void; - /** - * @returns The application menu if set, or null if not set. - */ - static getApplicationMenu(): Menu; + * Sets menu as the application menu on macOS. On Windows and Linux, the menu + * will be set as each window's top menu. + */ + static setApplicationMenu(menu: Menu): void; + /** + * @returns The application menu if set, or null if not set. + */ + static getApplicationMenu(): Menu; /** * Sends the action to the first responder of application. * This is used for emulating default Cocoa menu behaviors, @@ -6141,4 +6141,4 @@ declare module 'electron' { interface NodeRequireFunction { (moduleName: 'electron'): Electron.ElectronMainAndRenderer; -} \ No newline at end of file +} diff --git a/types/electron/test/renderer.ts b/types/electron/test/renderer.ts index 282e555397..8394f59d24 100644 --- a/types/electron/test/renderer.ts +++ b/types/electron/test/renderer.ts @@ -77,7 +77,7 @@ webFrame.registerURLSchemeAsPrivileged('app', { webFrame.insertText('text'); webFrame.executeJavaScript('JSON.stringify({})', false, (result) => { - console.log(result); + console.log(result); }).then((result: string) => console.log('OK:' + result)); console.log(webFrame.getResourceUsage()); @@ -149,25 +149,25 @@ function getUserMediaError(error: Error) { /*
- Drag your file here + Drag your file here
*/ var holder = document.getElementById('holder'); holder.ondragover = function () { - return false; + return false; }; holder.ondragleave = holder.ondragend = function () { - return false; + return false; }; holder.ondrop = function (e) { - e.preventDefault(); - var file = e.dataTransfer.files[0]; - console.log('File you dragged here is', file.path); - return false; + e.preventDefault(); + var file = e.dataTransfer.files[0]; + console.log('File you dragged here is', file.path); + return false; }; // nativeImage @@ -259,9 +259,9 @@ webview.send('ping'); webview.capturePage((image) => { console.log(image); }); { - const opened: boolean = webview.isDevToolsOpened(); - const focused: boolean = webview.isDevToolsFocused(); - const focused2: boolean = webview.getWebContents().isFocused(); + const opened: boolean = webview.isDevToolsOpened(); + const focused: boolean = webview.isDevToolsFocused(); + const focused2: boolean = webview.getWebContents().isFocused(); } // In guest page.