Network: Changed connection to return a Typescript string

This commit is contained in:
Keith D. Moore 2016-08-06 09:56:34 -05:00 committed by GitHub
parent 0c486b0965
commit 3748bccad2

View File

@ -54,7 +54,7 @@ export class Network {
* Return the network connection type
*/
@CordovaProperty
static get connection(): String { return navigator.connection.type; }
static get connection(): string { return navigator.connection.type; }
/**
* Get notified when the device goes offline