Fix pre-existing lint for cast syntax.

This commit is contained in:
Martin Probst
2018-12-17 16:50:42 +01:00
parent 7ddfc0b2a9
commit 8d24eae10e
+3 -4
View File
@@ -917,7 +917,7 @@ chrome.app.runtime.onLaunched.addListener(() => {
// #region chrome.gcm
const gcmMessage = <chrome.gcm.OutgoingMessage>{};
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: <chrome.networking.onc.NetworkConfigProperties>
{
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) => {