From d698d5985b764f7ab8e143b163c45a3617da5e0e Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 5 Apr 2021 23:30:07 +0200 Subject: [PATCH] feat(network): declare connection enum with strings(#3630) --- src/@ionic-native/plugins/network/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/@ionic-native/plugins/network/index.ts b/src/@ionic-native/plugins/network/index.ts index 72935e423..ae54422ac 100644 --- a/src/@ionic-native/plugins/network/index.ts +++ b/src/@ionic-native/plugins/network/index.ts @@ -5,14 +5,14 @@ import { Observable, merge } from 'rxjs'; declare const navigator: any; export enum Connection { - UNKNOWN = 0, - ETHERNET, - WIFI, - CELL_2G, - CELL_3G, - CELL_4G, - CELL, - NONE, + UNKNOWN = 'unknown', + ETHERNET = 'ethernet', + WIFI = 'wifi', + CELL_2G = '2g', + CELL_3G = '3g', + CELL_4G = '4g', + CELL = 'cellular', + NONE = 'none', } /**