feat(network): declare connection enum with strings(#3630)

This commit is contained in:
Noel De Martin 2021-04-05 23:30:07 +02:00 committed by GitHub
parent 8dcb6be4ea
commit d698d5985b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,14 +5,14 @@ import { Observable, merge } from 'rxjs';
declare const navigator: any; declare const navigator: any;
export enum Connection { export enum Connection {
UNKNOWN = 0, UNKNOWN = 'unknown',
ETHERNET, ETHERNET = 'ethernet',
WIFI, WIFI = 'wifi',
CELL_2G, CELL_2G = '2g',
CELL_3G, CELL_3G = '3g',
CELL_4G, CELL_4G = '4g',
CELL, CELL = 'cellular',
NONE, NONE = 'none',
} }
/** /**