From 6ecd7d3ebdfd386af4aff8797fab0a9f30f0ed8a Mon Sep 17 00:00:00 2001 From: Tom O'Neill Date: Tue, 15 Mar 2016 09:01:14 +0100 Subject: [PATCH] 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: {