From 6ecd7d3ebdfd386af4aff8797fab0a9f30f0ed8a Mon Sep 17 00:00:00 2001 From: Tom O'Neill Date: Tue, 15 Mar 2016 09:01:14 +0100 Subject: [PATCH 1/2] Update NetworkInformation.d.ts Added addEventListener on Connection interface to support "change". --- cordova/plugins/NetworkInformation.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cordova/plugins/NetworkInformation.d.ts b/cordova/plugins/NetworkInformation.d.ts index 1ba2ae9e0..cc960f657 100644 --- a/cordova/plugins/NetworkInformation.d.ts +++ b/cordova/plugins/NetworkInformation.d.ts @@ -45,7 +45,8 @@ interface Connection { * Connection.CELL * Connection.NONE */ - type: string + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + type: string; } declare var Connection: { From 45cd2543c2e10606070e46fdeb2b83e456c0e739 Mon Sep 17 00:00:00 2001 From: Tom O'Neill Date: Tue, 15 Mar 2016 09:09:17 +0100 Subject: [PATCH 2/2] Update NetworkInformation.d.ts --- cordova/plugins/NetworkInformation.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cordova/plugins/NetworkInformation.d.ts b/cordova/plugins/NetworkInformation.d.ts index cc960f657..292baa953 100644 --- a/cordova/plugins/NetworkInformation.d.ts +++ b/cordova/plugins/NetworkInformation.d.ts @@ -45,8 +45,8 @@ interface Connection { * Connection.CELL * Connection.NONE */ - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; type: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Connection: {