From 8d24eae10ed3a2f105bdf3c0bf66c86d53040080 Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Mon, 17 Dec 2018 16:50:42 +0100 Subject: [PATCH] Fix pre-existing lint for cast syntax. --- types/chrome-apps/test/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/types/chrome-apps/test/index.ts b/types/chrome-apps/test/index.ts index 61251e296a..6dbbabc263 100644 --- a/types/chrome-apps/test/index.ts +++ b/types/chrome-apps/test/index.ts @@ -917,7 +917,7 @@ chrome.app.runtime.onLaunched.addListener(() => { // #region chrome.gcm -const gcmMessage = {}; +const gcmMessage = {} as chrome.gcm.OutgoingMessage; gcmMessage.data = { /*goog: 'any', should not be allowed, and it is not :) */ test: true @@ -1078,8 +1078,7 @@ chrome.networking.config.finishAuthentication(filter.HexSSID || '', 'rejected'); // #region chrome.networking.onc const TLSFormatExample = { - NetworkConfigurations: - { + NetworkConfigurations: { GUID: '{00f79111-51e0-e6e0-76b3b55450d80a1b}', Name: 'MyTTLSNetwork', Type: 'WiFi', @@ -1103,7 +1102,7 @@ const TLSFormatExample = { 'SSID': 'MyTTLSNetwork', 'Security': 'WPA-EAP' } - } + } as chrome.networking.onc.NetworkConfigProperties } chrome.networking.onc.getNetworks({ 'networkType': 'All' }, (networkList) => {