mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-21 11:09:53 +08:00
Update NetworkInformation.d.ts
Added addEventListener on Connection interface to support "change".
This commit is contained in:
+2
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user